public class ThreadLocalBufferAllocator
extends Object
This is a Singleton class that allows you to allocate buffer that
are stored in ThreadLocal. This class stores 3 types of char
buffers - small (< 128 bytes), medium (<2K) and large (> 2K) as
well as three byte buffers - small, medium and large.
The local storage is activated on the return of the buffer.
The buffer returns null if it is already allocated.
- Author:
- Binu.John@sun.com, Santiago.PericasGeertsen@sun.com