Closeable, AutoCloseablepublic final class SubStream extends FilterInputStream
InputStream reading up to a specified number of bytes from an
underlying stream.
in| Constructor | Description |
|---|---|
SubStream(InputStream pStream,
long pLength) |
Creates a
SubStream of the given pStream. |
| Modifier and Type | Method | 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) |
markSupportedreadAllBytes, readNBytes, transferTopublic 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 AutoCloseableclose in interface Closeableclose 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 © 2018. All rights reserved.