Package com.hierynomus.smbj.share
Class FileInputStream
java.lang.Object
java.io.InputStream
com.hierynomus.smbj.share.FileInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
private int
private int
private File
private boolean
private static final org.slf4j.Logger
private Future
<SMB2ReadResponse> private long
private ProgressListener
private final long
-
Constructor Summary
ConstructorsConstructorDescriptionFileInputStream
(File file, int bufferSize, long readTimeout, ProgressListener progressListener) -
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Field Details
-
readTimeout
private final long readTimeout -
file
-
offset
private long offset -
curr
private int curr -
buf
private byte[] buf -
progressListener
-
isClosed
private boolean isClosed -
nextResponse
-
logger
private static final org.slf4j.Logger logger -
bufferSize
private int bufferSize
-
-
Constructor Details
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
-
available
public int available()- Overrides:
available
in classInputStream
-
skip
public long skip(long n) - Overrides:
skip
in classInputStream
-
loadBuffer
- Throws:
IOException
-
sendRequest
-