能否以及如何将RandomAccessFile与FTP服务器上包含的文件一起使用? [英] Can and How do you use RandomAccessFile with a file contained on an FTP server?

查看:259
本文介绍了能否以及如何将RandomAccessFile与FTP服务器上包含的文件一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题与Java有关

通过使用RandomAccessFile,我希望能够在不清空文件的情况下修改文件.

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

推荐答案

FTP协议仅勉强支持随机访问读写.

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

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

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.

这篇关于能否以及如何将RandomAccessFile与FTP服务器上包含的文件一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆