|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
com.google.common.io.LimitInputStream
ByteStreams.limit(java.io.InputStream, long)
instead. This class is scheduled
to be removed in Guava release 15.0.
@Beta @Deprecated public final class LimitInputStream
An InputStream that limits the number of bytes which can be read.
Field Summary |
---|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
LimitInputStream(java.io.InputStream in,
long limit)
Deprecated. Wraps another input stream, limiting the number of bytes which can be read. |
Method Summary | |
---|---|
int |
available()
Deprecated. |
void |
mark(int readlimit)
Deprecated. |
int |
read()
Deprecated. |
int |
read(byte[] b,
int off,
int len)
Deprecated. |
void |
reset()
Deprecated. |
long |
skip(long n)
Deprecated. |
Methods inherited from class java.io.FilterInputStream |
---|
close, markSupported, read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LimitInputStream(java.io.InputStream in, long limit)
in
- the input stream to be wrappedlimit
- the maximum number of bytes to be readMethod Detail |
---|
public int available() throws java.io.IOException
available
in class java.io.FilterInputStream
java.io.IOException
public void mark(int readlimit)
mark
in class java.io.FilterInputStream
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.FilterInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |