Package nl.vpro.util
Class InputStreamChunk
java.lang.Object
java.io.InputStream
nl.vpro.util.InputStreamChunk
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Counted
Wraps an
InputStream
to limit the number of bytes to produces.
Never closes the underlying stream.
- Since:
- 3.4
- Author:
- Michiel Meeuwissen
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
InputStreamChunk
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
getCount
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
-