可以和如何将RandomAccessFile与FTP服务器上包含的文件一起使用?

时间:2022-12-21 13:29:07

This problem pertains to Java

这个问题与Java有关

By using RandomAccessFile I intend to be able to also modify the file without blanking it.

通过使用RandomAccessFile我打算能够修改文件而不消隐。

1 个解决方案

#1


The FTP protocol only barely supports random access reads and writes.

FTP协议几乎不支持随机访问读写。

That is to say, an FTP client can use the REST command to start reading or writing from a particular offset, but it will always truncate the file from that point.

也就是说,FTP客户端可以使用REST命令从特定偏移量开始读取或写入,但它始终会从该点截断文件。

#1


The FTP protocol only barely supports random access reads and writes.

FTP协议几乎不支持随机访问读写。

That is to say, an FTP client can use the REST command to start reading or writing from a particular offset, but it will always truncate the file from that point.

也就是说,FTP客户端可以使用REST命令从特定偏移量开始读取或写入,但它始终会从该点截断文件。