Package com.google.common.jimfs
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) RegularFile
private final FileSystemState
private boolean
private long
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.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:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
readInternal
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
checkNotClosed
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
isOpen
private boolean isOpen()
-