public class LimitedInputStream extends PositionInputStream
position
in
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, reset
read
public LimitedInputStream(InputStream instream, long limit)
public int read() throws IOException
read
in class PositionInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class PositionInputStream
IOException
public long skip(long n) throws IOException
skip
in class PositionInputStream
IOException
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.