com.sun.xml.stream.util
Class ThreadLocalBufferAllocator

java.lang.Object
  extended by com.sun.xml.stream.util.ThreadLocalBufferAllocator

public class ThreadLocalBufferAllocator
extends java.lang.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.


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

ThreadLocalBufferAllocator

public ThreadLocalBufferAllocator()
Method Detail

getBufferAllocator

public static BufferAllocator getBufferAllocator()


Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.