public class FixedLengthInputStream
extends java.io.FilterInputStream
limit bytes were read from the delegate. Throws an EOFException iff
the delegate produces less than limit bytes.| Constructor and Description |
|---|
FixedLengthInputStream(java.io.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) |
public FixedLengthInputStream(java.io.InputStream in,
long limit)
public 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.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterInputStream