Class Overview
This is a small utility class, whose main functionality is to allow
simple reuse of raw byte/char buffers. It is usually used through
ThreadLocal
member of the owning class pointing to
instance of this class through a SoftReference
. The
end result is a low-overhead GC-cleanable recycling: hopefully
ideal for use by stream readers.
Summary
Nested Classes |
enum |
BufferRecycler.ByteBufferType |
|
enum |
BufferRecycler.CharBufferType |
|
[Expand]
Inherited Methods |
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()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
int
DEFAULT_WRITE_CONCAT_BUFFER_LEN
Constant Value:
2000
(0x000007d0)
Fields
protected
final
byte[][]
_byteBuffers
protected
final
char[][]
_charBuffers
Public Constructors
Public Methods