java.lang.Object |
↳ |
java.io.InputStream |
|
↳ |
com.facebook.common.memory.PooledByteArrayBufferedInputStream |
Class Overview
InputStream that wraps another input stream and buffers all reads.
For purpose of buffering a byte array is used. It is provided during construction time
together with ResourceReleaser responsible for releasing it when the stream is closed.
Public Constructors
public
PooledByteArrayBufferedInputStream
(InputStream inputStream, byte[] byteArray, ResourceReleaser<byte[]> resourceReleaser)
Public Methods
public
int
read
(byte[] buffer, int offset, int length)
public
long
skip
(long byteCount)
Protected Methods
protected
void
finalize
()