Merge pull request #139 from dkocher/master

Add constructor with file offset.
This commit is contained in:
Shikhar Bhushan
2014-08-03 22:06:31 +05:30

View File

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