I'm working on a project where I need to get a file from a remote server and send the content to an outputstream.
The edtftpj library does just about everything I need ... except I need to be able to specify the resume point in case I have a partial transfer that I need to resume.
I'm submitting the following modification to FTPClient to allow the resume point to be specified explicitly.
/**
* Make the next file transfer (put or get) resume at a specific point.
* For puts(), the bytes already transferred are skipped over, while
* for gets(), if writing to a file, it is opened in append mode, and only
* the bytes required are transferred.
*
* Currently resume is only supported for BINARY transfers (which is
* generally what it is most useful for).
*
* @throws FTPException
*/
public void resume(long resumePoint) throws FTPException {
resume();
resumeMarker = resumePoint;
}