public final class SubStream extends FilterInputStream
InputStream reading up to a specified number of bytes from an
underlying stream.
in| Constructor and Description |
|---|
SubStream(InputStream pStream,
long pLength)
Creates a
SubStream of the given pStream. |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close()
Marks this stream as closed.
|
void |
mark(int pReadLimit) |
int |
read() |
int |
read(byte[] pBytes) |
int |
read(byte[] pBytes,
int pOffset,
int pLength) |
void |
reset() |
long |
skip(long pLength) |
markSupportedpublic SubStream(InputStream pStream, long pLength)
SubStream of the given pStream.pStream - the underlying input streampLength - maximum number of bytes to read drom this streampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic void mark(int pReadLimit)
mark in class FilterInputStreampublic void reset()
throws IOException
reset in class FilterInputStreamIOExceptionpublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic final int read(byte[] pBytes)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] pBytes,
int pOffset,
int pLength)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long pLength)
throws IOException
skip in class FilterInputStreamIOExceptionCopyright © 2017. All Rights Reserved.