java - How to read the complete result of ftp transfer in storeFile() in FTPClient? -
my question regarding ftpclient. need detailed reply statistics. when use getreplystring()
part of information. example: code is
ftpclient ftp = new ftpclient(); //some code here ftp.storefile(hostdir + filename, input); system.out.println(ftp.getreplystring());// prints "226 transfer ok" when sucessful
but need statistics when ftp manually using command prompt in
226 transfer ok ftp: 50 bytes sent in 0.09seconds 0.55kbytes/sec.
how these stats using ftpclient? idea or link refer to?
you can make manually, recording start , end of process. after, calculations, like: filelength / timeend - timestart. should work little more in these calculations.
Comments
Post a Comment