Package org.apache.commons.net.ftp

Examples of org.apache.commons.net.ftp.FTPClient.appendFile()


                size = (int) i.getSize();
            }
        }
        log.debug("FTP WRITE STARTED");
        long start = System.currentTimeMillis();
        log.trace("clientappendfile=" + client.appendFile(filename, new ByteArrayInputStream(data, size, data.length - size)));
        log.trace("client responce code:" + client.getReplyCode() + ", string:" + client.getReplyString());
        long end = System.currentTimeMillis();
        log.debug("FTP WRITE FINISHED, time = " + (end - start) + ", speed: " + ((data.length * 1000) / (128 * (end - start))) + "kbps");
        if (client.getReplyCode() != 226) {
            log.error("client error code:" + client.getReplyCode() + ", string:" + client.getReplyString());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.