import java.awt.*; import javax.swing.*; import java.io.*; import WebFlow.RemoteFile.*; public class FileTransfer implements Runnable { private boolean debug; private String LocalFileName, RemoteFileName; public FileTransfer(String LocalFileName, String RemoteFileName, boolean debug) { this.LocalFileName = LocalFileName; this.RemoteFileName = RemoteFileName; this.debug = debug; ? Connection.movefile.Init(Connection.remote); } public void run(){ File local = new File(LocalFileName); if(local.exists()) { if(local.canRead()) { long file_length = local.length(); long pos = 0; FileInputStream fis = new FileInputStream(local); byte buffer[] =new buffer[blksize]; try { Connection.remote.open(RemoteFileName,"rw"); while(true) { int icount = fis.read(buffer); if(icount==-1) throw new EOFException(); byte arr[]; if(blksize==icount) { arr=buffer; } else { arr=new byte[icount]; for(int i=0;i