|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--extensions.gem.FileTransferBean
Program FileTransferBean.java. Comments: This class is used to move files back and forth between the localhost and the remote server (the machine running the WebFlow server). Uses the RemoteFile module to do this. This is a rewrite of the original version by Tom Haupt. Note that this is a _client_ program.
Constructor Summary | |
FileTransferBean(org.omg.CORBA.ORB anOrb,
java.lang.String obj_ior)
FileTransfer constructor accepts ORB and RemoteFile IOR |
|
FileTransferBean(extensions.gem.RemoteFile rf)
Use this contstructor to pass a preexisting RemoteFile object from another class. |
Method Summary | |
void |
DirectoryReceive(java.lang.String localDirectory,
java.lang.String remoteDirectory)
DirectoryReceive copies Directory from the remote host to the local directory |
void |
DirectorySend(java.lang.String localDirectory,
java.lang.String remoteDirectory)
DirectorySend sends local directory to the remote host |
void |
FileReceive(java.lang.String localFile,
java.lang.String remoteFile)
FileReceive copies file from the remote host to the local file |
void |
FileSend(java.lang.String localFile,
java.lang.String remoteFile)
FileSend sends local file to the remote host |
void |
SetBlockSize(short aSize)
SetBlockSize sets size of the block of data to be sent for each transfer |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public FileTransferBean(org.omg.CORBA.ORB anOrb, java.lang.String obj_ior)
public FileTransferBean(extensions.gem.RemoteFile rf)
Method Detail |
public void FileSend(java.lang.String localFile, java.lang.String remoteFile) throws java.io.FileNotFoundException, WebFlow.RemoteFile.FileException, java.io.IOException
source
- name of the local file to be sentdest
- name of the remote filepublic void FileReceive(java.lang.String localFile, java.lang.String remoteFile) throws WebFlow.RemoteFile.FileException, java.io.IOException
dest
- name of the local file to copy tosource
- name of the remote file to be copiedpublic void DirectorySend(java.lang.String localDirectory, java.lang.String remoteDirectory) throws java.io.FileNotFoundException, WebFlow.RemoteFile.FileException, java.io.IOException
source
- name of the local directory to be sentdest
- name of the remote directorypublic void DirectoryReceive(java.lang.String localDirectory, java.lang.String remoteDirectory) throws WebFlow.RemoteFile.FileException, java.io.IOException
dest
- name of the local directory to copy tosource
- name of the remote directory to be copiedpublic void SetBlockSize(short aSize)
aSize
- new size of the block
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |