public final class CompressibleByteArrayOutputStreamPool extends Object
Modifier and Type | Field and Description |
---|---|
static CompressibleByteArrayOutputStreamPool |
SINGLE_INSTANCE |
Constructor and Description |
---|
CompressibleByteArrayOutputStreamPool() |
Modifier and Type | Method and Description |
---|---|
CompressibleByteArrayOutputStream |
borrowStream() |
int |
getCompressionThreshold() |
int |
getInitBufSize() |
CompressibleByteArrayOutputStreamPool |
getInstance() |
int |
getMaxMemoryLimitKb() |
Queue<CompressibleByteArrayOutputStream> |
getPool() |
boolean |
returnStream(CompressibleByteArrayOutputStream stream) |
void |
setCompressionThreshold(int pcompressionThreshold) |
void |
setInitBufSize(int pinitBufSize) |
void |
setMemoryLimitKb(int memoryLimit) |
public static final CompressibleByteArrayOutputStreamPool SINGLE_INSTANCE
public CompressibleByteArrayOutputStreamPool()
public CompressibleByteArrayOutputStream borrowStream()
public boolean returnStream(CompressibleByteArrayOutputStream stream)
public int getInitBufSize()
public void setInitBufSize(int pinitBufSize)
public int getCompressionThreshold()
public void setCompressionThreshold(int pcompressionThreshold)
public int getMaxMemoryLimitKb()
public void setMemoryLimitKb(int memoryLimit)
public Queue<CompressibleByteArrayOutputStream> getPool()
public CompressibleByteArrayOutputStreamPool getInstance()
Copyright © 2013- Suresh Mahalingam. All Rights Reserved.