public final class SubStream
extends java.io.FilterInputStream
InputStream reading up to a specified number of bytes from an
underlying stream.| Constructor and Description |
|---|
SubStream(java.io.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) |
public SubStream(java.io.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 java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterInputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOExceptionpublic void mark(int pReadLimit)
mark in class java.io.FilterInputStreampublic void reset()
throws java.io.IOException
reset in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic final int read(byte[] pBytes)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] pBytes,
int pOffset,
int pLength)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long pLength)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionCopyright © 2020. All Rights Reserved.