These programs were written to enhance the SftpClient for j2ssh
What they do is add the ability to resume a get or a put of a file
so you do not have to restart the transfer from the beginning.
These programs are distributed in the hope that they will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I have written my examples in this document from the perspective that
you are using unix. You will need to of course modify this documentation
slightly to support Windows.
I have assumed you have the java jdk installed on your system and the
JAVA_HOME environment variable has been defined.
To compile j2ssh you will also need apache ant installed on your system.
I would like to give credit to David Hayes, his tutorial referenced in
an article on his web site gave me the information I needed to write this patch:
Note: I have added some functionality that I perceive as neccessary... you may
not. That is when the source file date is newer than the destination file
date, I assume that it must have been revised so I download the entire file.
To make this work I needed to update the date string in FileAttributes.java so
that it would always match the date string from the java File object. In
addition to modify this file I also had to make some modifications to
SftpClient.java.
make resume uploads and downloads date sensitive.