|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
WebFlow.RemoteFile.RemoteFileImp
RemoteFileImpl implements RemoteFile interface that allows user to manipulate with the remote file
Constructor Summary | |
RemoteFileImp(org.omg.CORBA.Object peer,
java.lang.String msg)
|
Method Summary | |
void |
close()
close previously opened file. |
protected void |
copy_dir(java.lang.String source,
java.lang.String dest)
|
protected void |
copy_file(java.lang.String source,
java.lang.String dest)
|
boolean |
copy(java.lang.String source,
java.lang.String dest)
|
boolean |
createNewFile(java.lang.String fileName)
Creates a new file on the server. |
boolean |
delete(java.lang.String file_name)
|
boolean |
exists(java.lang.String file_name)
|
java.lang.String[] |
fileList(java.lang.String dir_name)
|
void |
get(org.omg.CORBA.ByteHolder c)
gets one byte from the file and returns it to the user |
byte[] |
getBlock()
reads block of bytes from the file and returns it to the user |
int |
getFileSize()
|
boolean |
HtmlTemplate(java.lang.String template,
java.lang.String htmlFile,
java.lang.String message)
|
boolean |
isDirectory(java.lang.String directory_name)
|
boolean |
isFile(java.lang.String filename)
|
boolean |
mkdir(java.lang.String dir_name)
|
void |
open(java.lang.String file_name,
java.lang.String options)
open file specified by user. |
void |
put(byte c)
write one byte to the file |
void |
putBlock(byte[] arr)
write block of bytes to the file |
boolean |
rename(java.lang.String source,
java.lang.String dest)
|
boolean |
rmdir(java.lang.String dir_name)
|
boolean |
saveAsFile(java.lang.String filename,
java.lang.String body)
|
void |
saveIOR(java.lang.String ior,
java.lang.String filename)
|
void |
setBlockSize(short aSize)
set block size for reading file |
void |
test()
|
Constructor Detail |
public RemoteFileImp(org.omg.CORBA.Object peer, java.lang.String msg) throws WebFlow.NullPointerException
Method Detail |
public void open(java.lang.String file_name, java.lang.String options) throws WebFlow.RemoteFile.FileException
file_name
- name of the file to openpublic void close()
public void get(org.omg.CORBA.ByteHolder c) throws WebFlow.RemoteFile.FileException, WebFlow.RemoteFile.EOFFileException
c
- holds read bytepublic byte[] getBlock() throws WebFlow.RemoteFile.FileException, WebFlow.RemoteFile.EOFFileException
arr
- sequence of read bytes. use arr.value.length to determine
how many bytes were read.public void put(byte c) throws WebFlow.RemoteFile.FileException
c
- value to be written to the filepublic void putBlock(byte[] arr) throws WebFlow.RemoteFile.FileException
arr
- array of bytes to be written to the file.public void setBlockSize(short aSize)
aSize
- size of the block of octets to be read at one timepublic int getFileSize() throws WebFlow.RemoteFile.FileException
public boolean createNewFile(java.lang.String fileName)
public boolean delete(java.lang.String file_name)
public boolean mkdir(java.lang.String dir_name)
public boolean rmdir(java.lang.String dir_name)
public boolean rename(java.lang.String source, java.lang.String dest)
protected void copy_file(java.lang.String source, java.lang.String dest) throws WebFlow.RemoteFile.FileException
protected void copy_dir(java.lang.String source, java.lang.String dest) throws WebFlow.RemoteFile.FileException
public boolean copy(java.lang.String source, java.lang.String dest)
public boolean exists(java.lang.String file_name)
public boolean isDirectory(java.lang.String directory_name)
public java.lang.String[] fileList(java.lang.String dir_name)
public boolean isFile(java.lang.String filename)
public void test()
public boolean saveAsFile(java.lang.String filename, java.lang.String body)
public boolean HtmlTemplate(java.lang.String template, java.lang.String htmlFile, java.lang.String message)
public void saveIOR(java.lang.String ior, java.lang.String filename)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |