WebFlow.RemoteFile
Class FileTransfer

java.lang.Object
  |
  +--WebFlow.RemoteFile.FileTransfer

public class FileTransfer
extends java.lang.Object

FileTransfer is used to send and receive files to and from remote host It uses RemoteFile CORBA object to work with the remote file


Constructor Summary
FileTransfer(org.omg.CORBA.ORB anOrb, java.lang.String obj_ior)
          FileTransfer constructor accepts ORB and RemoteFile IOR
FileTransfer(org.omg.CORBA.ORB anOrb, java.lang.String obj_ior, FTcallback aCallback)
          FileTransfer constructor accepts ORB and RemoteFile IOR
FileTransfer(WebFlow.RemoteFile.RemoteFile rf)
           
 
Method Summary
 void FileReceive(java.lang.String dest, java.lang.String source)
          FileReceive copies file from the remote host to the local file
 void FileSend(java.lang.String source, java.lang.String dest)
          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

FileTransfer

public FileTransfer(org.omg.CORBA.ORB anOrb,
                    java.lang.String obj_ior)
FileTransfer constructor accepts ORB and RemoteFile IOR

FileTransfer

public FileTransfer(WebFlow.RemoteFile.RemoteFile rf)

FileTransfer

public FileTransfer(org.omg.CORBA.ORB anOrb,
                    java.lang.String obj_ior,
                    FTcallback aCallback)
FileTransfer constructor accepts ORB and RemoteFile IOR
Method Detail

FileSend

public void FileSend(java.lang.String source,
                     java.lang.String dest)
              throws java.io.FileNotFoundException,
                     WebFlow.RemoteFile.FileException,
                     java.io.IOException
FileSend sends local file to the remote host
Parameters:
source - name of the local file to be sent
dest - name of the remote file

FileReceive

public void FileReceive(java.lang.String dest,
                        java.lang.String source)
                 throws WebFlow.RemoteFile.FileException,
                        java.io.IOException
FileReceive copies file from the remote host to the local file
Parameters:
dest - name of the local file to copy to
source - name of the remote file to be copied

SetBlockSize

public void SetBlockSize(short aSize)
SetBlockSize sets size of the block of data to be sent for each transfer
Parameters:
aSize - new size of the block