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, readpublic 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 FilterInputStreamIOExceptionpublic void mark(int readlimit)
mark in class FilterInputStreampublic int read() throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b, int off, int len) throws IOException
read in class FilterInputStreamIOExceptionpublic void reset() throws IOException
reset in class FilterInputStreamIOExceptionpublic long skip(long n) throws IOException
skip in class FilterInputStreamIOExceptionCopyright © 2010-2013. All Rights Reserved.