Package net.ontopia.persistence.proxy
Class ContentInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
net.ontopia.persistence.proxy.ContentInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
INTERNAL: InputStream that knows its length.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected longprotected longFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
length
protected long length -
lengthRead
protected long lengthRead -
closed
protected boolean closed
-
-
Constructor Details
-
ContentInputStream
-
-
Method Details
-
getLength
public long getLength() -
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-