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:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- DefaultFileContent
private final class DefaultFileContent.RawFileContentInputStream extends RawMonitorInputStream
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
Fields Modifier and Type Field Description private FileObject
file
-
Constructor Summary
Constructors Constructor Description RawFileContentInputStream(FileObject file, java.io.InputStream instr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes this input stream.protected void
onClose()
Called after the stream has been closed.
-
-
-
Field Detail
-
file
private final FileObject file
-
-
Constructor Detail
-
RawFileContentInputStream
RawFileContentInputStream(FileObject file, java.io.InputStream instr)
-
-
Method Detail
-
close
public void close() throws FileSystemException
Closes this input stream.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classRawMonitorInputStream
- Throws:
FileSystemException
-
onClose
protected void onClose() throws java.io.IOException
Called after the stream has been closed.- Overrides:
onClose
in classRawMonitorInputStream
- Throws:
java.io.IOException
- if an error occurs.
-
-