Package oracle.stellent.ridc.common.io
Class LengthLimitedInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
oracle.stellent.ridc.common.io.LengthLimitedInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
InputStream that will only read up to a given content length
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
close, markSupported, readMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
LengthLimitedInputStream
-
-
Method Details
-
getContentLength
public long getContentLength() -
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
available
- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classFilterInputStream
-
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException
-