public class LimitedInputStream extends PositionInputStream
positionin| Constructor and Description |
|---|
LimitedInputStream(InputStream instream,
long limit) |
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
available, close, getPosition, mark, markSupported, resetreadpublic LimitedInputStream(InputStream instream, long limit)
public int read()
throws IOException
read in class PositionInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class PositionInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class PositionInputStreamIOExceptionCopyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.