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, reset
public 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 FilterInputStream
IOException
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
Copyright © 2010–2018 Planetary Data System. All rights reserved.