@InterfaceAudience.Private @InterfaceStability.Evolving public class ExactSizeInputStream extends FilterInputStream
in| Constructor and Description |
|---|
ExactSizeInputStream(InputStream in,
int numBytes)
Construct an input stream that will read no more than
'numBytes' bytes.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
close, read, resetpublic ExactSizeInputStream(InputStream in, int numBytes)
in - the inputstream to wrapnumBytes - the number of bytes to readpublic 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 FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStreampublic void mark(int readlimit)
mark in class FilterInputStreamCopyright © 2013 Apache Software Foundation. All rights reserved.