com.sun.xml.internal.stream.util
public Class ThreadLocalBufferAllocator
extends Object
- Class Inheritance
-
- Imports
- java.lang.ref.*
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.
- Authors
- Binu John, Santiago PericasGeertsen
Constructor Summary
| Access | Constructor and Description
|
|---|
| public |
|
Constructor Detail
| ThreadLocalBufferAllocator | back to summary
|
|---|
| public ThreadLocalBufferAllocator()
|