public class LengthLimitedInputStream
extends java.io.FilterInputStream
| Constructor and Description |
|---|
LengthLimitedInputStream(java.io.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) |
public LengthLimitedInputStream(java.io.InputStream in,
long offset,
long size)
throws java.io.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 readjava.io.IOException - if there is an error accessing the underlying input streampublic int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionCopyright © 2022 Planetary Data System. All rights reserved.