synchronized void send(String fileName,long skip) throws IOException {
  connect();
  try {
    OutputStream out=socket.getOutputStream();
    InputStream in=FileUtils.newInputStream(fileName);
    IOUtils.skipFully(in,skip);
    IOUtils.copy(in,out);
    in.close();
  }
  finally {
    socket.close();
  }
  server.trace("closed");
}

synchronized void send ( String fileName , long skip ) throws IOException { connect ( ) ; try { OutputStream out = socket . getOutputStream ( ) ; InputStream in = FileUtils . newInputStream ( fileName ) ; IOUtils . skipFully ( in , skip ) ; IOUtils . copy ( in , out ) ; in . close ( ) ; } finally { socket . close ( ) ; } server . trace ( "closed" ) ; }
send a file to the client . this method waits until the client has connected .
