java.lang.Object | |
↳ | com.facebook.imagepipeline.memory.MemoryPooledByteBufferFactory |
A factory to provide instances of MemoryPooledByteBuffer
and MemoryPooledByteBufferOutputStream
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MemoryPooledByteBufferFactory(MemoryChunkPool pool, PooledByteStreams pooledByteStreams) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MemoryPooledByteBuffer |
newByteBuffer(InputStream inputStream)
Creates a new bytebuf instance by reading in the entire contents of the input stream
| ||||||||||
MemoryPooledByteBuffer |
newByteBuffer(byte[] bytes)
Creates a new bytebuf instance by reading in the entire contents of the byte array
| ||||||||||
MemoryPooledByteBuffer |
newByteBuffer(InputStream inputStream, int initialCapacity)
Creates a new PooledByteBuffer instance with an initial capacity, and reading the entire
contents of the input stream
| ||||||||||
MemoryPooledByteBuffer |
newByteBuffer(int size)
Creates a new PooledByteBuffer instance of given size.
| ||||||||||
MemoryPooledByteBufferOutputStream |
newOutputStream()
Creates a new PooledByteBufferOutputStream instance with default initial capacity
| ||||||||||
MemoryPooledByteBufferOutputStream |
newOutputStream(int initialCapacity)
Creates a new PooledByteBufferOutputStream instance with the specified initial capacity
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.facebook.common.memory.PooledByteBufferFactory
|
Creates a new bytebuf instance by reading in the entire contents of the input stream
inputStream | the input stream to read from |
---|
IOException |
---|
Creates a new bytebuf instance by reading in the entire contents of the byte array
bytes | the byte array to read from |
---|
Creates a new PooledByteBuffer instance with an initial capacity, and reading the entire contents of the input stream
inputStream | the input stream to read from |
---|---|
initialCapacity | initial allocation size for the bytebuf |
IOException |
---|
Creates a new PooledByteBuffer instance of given size.
size | in bytes |
---|
Creates a new PooledByteBufferOutputStream instance with default initial capacity
Creates a new PooledByteBufferOutputStream instance with the specified initial capacity
initialCapacity | initial allocation size for the underlying output stream |
---|