public class LengthLimitedInputStream extends FilterInputStream
in| Constructor and Description |
|---|
LengthLimitedInputStream(InputStream in,
long offset,
long size)
Creates a new instance wrapping the given input stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
close, mark, markSupported, read, resetpublic LengthLimitedInputStream(InputStream in, long offset, long size) throws IOException
in - the underlying input streamoffset - the offset from the start of the stream to begin readingsize - the size of the portion of the data to readIOException - if there is an error accessing the underlying input streampublic int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionCopyright © 2010–2017 Planetary Data System. All rights reserved.