Package org.apache.commons.vfs2.provider
Class DefaultFileContent.FileContentInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.BufferedInputStream
org.apache.commons.vfs2.util.MonitorInputStream
org.apache.commons.vfs2.provider.DefaultFileContent.FileContentInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- DefaultFileContent
An input stream for reading content. Provides buffering, and end-of-stream monitoring.
-
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionFileContentInputStream(FileObject file, InputStream instr) FileContentInputStream(FileObject file, InputStream instr, int bufferSize) -
Method Summary
Methods inherited from class org.apache.commons.vfs2.util.MonitorInputStream
available, closeSuper, getCount, read, readMethods inherited from class java.io.BufferedInputStream
mark, markSupported, reset, skipMethods inherited from class java.io.FilterInputStream
readMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
file
-
-
Constructor Details
-
FileContentInputStream
FileContentInputStream(FileObject file, InputStream instr) -
FileContentInputStream
FileContentInputStream(FileObject file, InputStream instr, int bufferSize)
-
-
Method Details
-
close
Closes this input stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classMonitorInputStream- Throws:
FileSystemException
-
onClose
Called after the stream has been closed.- Overrides:
onClosein classMonitorInputStream- Throws:
IOException- if an error occurs.
-