public void pushFile(String local,String remote,ISyncProgressMonitor monitor) throws SyncException, IOException, TimeoutException {
  File f=new File(local);
  if (!f.exists()) {
    throw new SyncException(SyncError.NO_LOCAL_FILE);
  }
  if (f.isDirectory()) {
    throw new SyncException(SyncError.LOCAL_IS_DIRECTORY);
  }
  monitor.start((int)f.length());
  doPushFile(local,remote,monitor);
  monitor.stop();
}

public void pushFile ( String local , String remote , ISyncProgressMonitor monitor ) throws SyncException , IOException , TimeoutException { File f = new File ( local ) ; if ( ! f . exists ( ) ) { throw new SyncException ( SyncError . NO_LOCAL_FILE ) ; } if ( f . isDirectory ( ) ) { throw new SyncException ( SyncError . LOCAL_IS_DIRECTORY ) ; } monitor . start ( ( int ) f . length ( ) ) ; doPushFile ( local , remote , monitor ) ; monitor . stop ( ) ; }
push a single file .
