|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.xml.stream.util.ThreadLocalBufferAllocator
public class ThreadLocalBufferAllocator
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.
| Constructor Summary | |
|---|---|
ThreadLocalBufferAllocator()
|
|
| Method Summary | |
|---|---|
static BufferAllocator |
getBufferAllocator()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadLocalBufferAllocator()
| Method Detail |
|---|
public static BufferAllocator getBufferAllocator()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||