Add constructor with file offset.

This commit is contained in:
David Kocher
2014-07-29 14:17:51 +02:00
parent e943d80049
commit 66514836c8

View File

@@ -248,6 +248,12 @@ public class RemoteFile
this.fileOffset = 0;
}
public ReadAheadRemoteFileInputStream(int maxUnconfirmedReads, long fileOffset) {
this.maxUnconfirmedReads = maxUnconfirmedReads;
this.unconfirmedReads = new LinkedList<Promise<Response, SFTPException>>();
this.fileOffset = fileOffset;
}
@Override
public long skip(long n)
throws IOException {