简体   繁体   English

ftp4j-以附加模式上传文件

[英]ftp4j - upload a file in append mode

Is there a way to upload a file with ftp4j in append mode? 有没有办法在附加模式下使用ftp4j上传文件? I can't find any reference to that in the documentation or on google. 我在文档中或Google上找不到对此的任何引用。 Thank you! 谢谢!

Starting from frp4j 1.6 you can use the append() method: 从frp4j 1.6开始,您可以使用append()方法:

  • append(File) 追加(文件)
  • append(File, FTPDataTransferListener) append(File,FTPDataTransferListener)
  • append(String, InputStream, long, FTPDataTransferListener) append(String,InputStream,long,FTPDataTransferListener)

See: http://www.sauronsoftware.it/projects/ftp4j/api/it/sauronsoftware/ftp4j/FTPClient.html#append%28java.io.File%29 请参阅: http : //www.sauronsoftware.it/projects/ftp4j/api/it/sauronsoftware/ftp4j/FTPClient.html#append%28java.io.File%29

The FTPClient.upload(File file, long RestartAt) method can restart an upload. FTPClient.upload(File file,long RestartAt)方法可以重新启动上传。 The parameter restartAt specifies the restart point (number of bytes already uploaded). 参数restartAt指定重启点(已上传的字节数)。 Use isResumeSupported() to check if the server supports resuming of broken data transfers. 使用isResumeSupported()检查服务器是否支持恢复中断的数据传输。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM