public class FixedLengthInputStream extends FilterInputStream
limit bytes were read from the delegate. Throws an EOFException iff
the delegate produces less than limit bytes.in| Constructor and Description |
|---|
FixedLengthInputStream(InputStream in,
long limit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
available, mark, markSupported, read, resetpublic FixedLengthInputStream(InputStream in, long limit)
public 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 FilterInputStreamIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamCopyright © 2017 Arno Unkrig. All rights reserved.