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, read
Methods inherited from class java.io.BufferedInputStream
mark, markSupported, reset, skip
Methods inherited from class java.io.FilterInputStream
read
Methods 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classMonitorInputStream
- Throws:
FileSystemException
-
onClose
Called after the stream has been closed.- Overrides:
onClose
in classMonitorInputStream
- Throws:
IOException
- if an error occurs.
-