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 extends FilterInputStream
in
Constructor and Description |
---|
LimitInputStream(InputStream in,
long limit)
Deprecated.
Wraps another input stream, limiting the number of bytes which can be read.
|
Modifier and Type | Method and Description |
---|---|
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.
|
close, markSupported, read
public LimitInputStream(InputStream in, long limit)
in
- the input stream to be wrappedlimit
- the maximum number of bytes to be readpublic int available() throws IOException
available
in class FilterInputStream
IOException
public void mark(int readlimit)
mark
in class FilterInputStream
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public void reset() throws IOException
reset
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
Copyright © 2010-2013. All Rights Reserved.