public sun.net.ftp.FtpClient appendFile(String name,InputStream local) throws sun.net.ftp.FtpProtocolException, IOException {
  int mtu=1500;
  Socket s=openDataConnection("APPE " + name);
  OutputStream remote=createOutputStream(s.getOutputStream());
  byte[] buf=new byte[mtu * 10];
  int l;
  while ((l=local.read(buf)) >= 0) {
    if (l > 0) {
      remote.write(buf,0,l);
    }
  }
  remote.close();
  return completePending();
}

public sun . net . ftp . FtpClient appendFile ( String name , InputStream local ) throws sun . net . ftp . FtpProtocolException , IOException { int mtu = 1500 ; Socket s = openDataConnection ( "APPE " + name ) ; OutputStream remote = createOutputStream ( s . getOutputStream ( ) ) ; byte [ ] buf = new byte [ mtu * 10 ] ; int l ; while ( ( l = local . read ( buf ) ) >= 0 ) { if ( l > 0 ) { remote . write ( buf , 0 , l ) ; } } remote . close ( ) ; return completePending ( ) ; }
sends the appe command to the server in order to transfer a data stream passed in argument and append it to the content of the specified remote file .
