java.lang.Object |
↳ |
java.io.InputStream |
|
↳ |
java.io.FilterInputStream |
|
|
↳ |
com.facebook.common.streams.LimitedInputStream |
Class Overview
Reads the wrapped InputStream only until a specified number of bytes, the 'limit' is reached.
Summary
[Expand]
Inherited Fields |
From class
java.io.FilterInputStream
|
Public Methods |
int
|
available()
|
void
|
mark(int readLimit)
|
int
|
read()
|
int
|
read(byte[] buffer, int byteOffset, int byteCount)
|
void
|
reset()
|
long
|
skip(long byteCount)
|
Public Constructors
public
LimitedInputStream
(InputStream inputStream, int limit)
Public Methods
public
void
mark
(int readLimit)
public
int
read
(byte[] buffer, int byteOffset, int byteCount)
public
long
skip
(long byteCount)