Package org.apache.commons.vfs2.provider
Class DefaultFileContent.RawFileContentInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.vfs2.util.RawMonitorInputStream
org.apache.commons.vfs2.provider.DefaultFileContent.RawFileContentInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- DefaultFileContent
An input stream for reading content. Provides buffering, and end-of-stream monitoring.
This is the same as DefaultFileContent.FileContentInputStream
but without the buffering.
-
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.vfs2.util.RawMonitorInputStream
available, getCount, mark, read, read
Methods inherited from class java.io.FilterInputStream
markSupported, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
file
-
-
Constructor Details
-
RawFileContentInputStream
RawFileContentInputStream(FileObject file, InputStream instr)
-
-
Method Details
-
close
Closes this input stream.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classRawMonitorInputStream
- Throws:
FileSystemException
-
onClose
Called after the stream has been closed.- Overrides:
onClose
in classRawMonitorInputStream
- Throws:
IOException
- if an error occurs.
-