Back to Fresco

PooledByteArrayBufferedInputStream

docs/javadoc/reference/com/facebook/common/memory/PooledByteArrayBufferedInputStream.html

3.6.013.6 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Enums

Exceptions

Packages | Classes

Summary: Ctors | Methods | Protected Methods | Inherited Methods | [Expand All]

public class

PooledByteArrayBufferedInputStream

extends InputStream

| 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.

Summary

Public Constructors
Public Methods
int
void
int
int
long
Protected Methods
void

| [Expand] Inherited Methods | | --- | | From class java.io.InputStream

| int | available() | | void | close() | | synchronized void | mark(int arg0) | | boolean | markSupported() | | abstract int | read() | | int | read(byte[] arg0, int arg1, int arg2) | | int | read(byte[] arg0) | | synchronized void | reset() | | long | skip(long arg0) |

| | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

| | From interface java.io.Closeable

| abstract void | close() |

| | From interface java.lang.AutoCloseable

| abstract void | close() |

|

Public Constructors

public PooledByteArrayBufferedInputStream(InputStream inputStream, byte[] byteArray, ResourceReleaser<byte[]> resourceReleaser)

Public Methods

public int available()

Throws

| IOException | |

public void close()

Throws

| IOException | |

public int read()

Throws

| IOException | |

public int read(byte[] buffer, int offset, int length)

Throws

| IOException | |

public long skip(long byteCount)

Throws

| IOException | |

Protected Methods

protected void finalize()

Throws

| Throwable | |

+Generated by Doclava. +