Package net.schmizz.sshj.sftp
Class RemoteFile.ReadAheadRemoteFileInputStream
- java.lang.Object
-
- java.io.InputStream
-
- net.schmizz.sshj.sftp.RemoteFile.ReadAheadRemoteFileInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- RemoteFile
public class RemoteFile.ReadAheadRemoteFileInputStream extends java.io.InputStream
-
-
Constructor Summary
Constructors Constructor Description ReadAheadRemoteFileInputStream(int maxUnconfirmedReads)ReadAheadRemoteFileInputStream(int maxUnconfirmedReads, long fileOffset)ReadAheadRemoteFileInputStream(int maxUnconfirmedReads, long fileOffset, long readAheadLimit)
-
-
-
Constructor Detail
-
ReadAheadRemoteFileInputStream
public ReadAheadRemoteFileInputStream(int maxUnconfirmedReads)
-
ReadAheadRemoteFileInputStream
public ReadAheadRemoteFileInputStream(int maxUnconfirmedReads, long fileOffset)- Parameters:
maxUnconfirmedReads- Maximum number of unconfirmed requests to sendfileOffset- Initial offset in file to read from
-
ReadAheadRemoteFileInputStream
public ReadAheadRemoteFileInputStream(int maxUnconfirmedReads, long fileOffset, long readAheadLimit)- Parameters:
maxUnconfirmedReads- Maximum number of unconfirmed requests to sendfileOffset- Initial offset in file to read fromreadAheadLimit- Read ahead is disabled after this limit has been reached
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] into, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException- Overrides:
availablein classjava.io.InputStream- Throws:
java.io.IOException
-
-