Class JimfsInputStream
java.lang.Object
java.io.InputStream
com.google.common.jimfs.JimfsInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
InputStream for reading from a file's RegularFile.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) RegularFileprivate final FileSystemStateprivate booleanprivate long -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Field Details
-
file
RegularFile file -
pos
private long pos -
finished
private boolean finished -
fileSystemState
-
-
Constructor Details
-
JimfsInputStream
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
readInternal
- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
checkNotClosed
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
isOpen
private boolean isOpen()
-