com.sun.xml.stream.util
Class BufferAllocator

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

public class BufferAllocator
extends java.lang.Object


Field Summary
static int LARGE_SIZE_LIMIT
           
static int MEDIUM_SIZE_LIMIT
           
static int SMALL_SIZE_LIMIT
           
 
Constructor Summary
BufferAllocator()
           
 
Method Summary
 byte[] getByteBuffer(int size)
           
 char[] getCharBuffer(int size)
           
 void returnByteBuffer(byte[] b)
           
 void returnCharBuffer(char[] c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SMALL_SIZE_LIMIT

public static int SMALL_SIZE_LIMIT

MEDIUM_SIZE_LIMIT

public static int MEDIUM_SIZE_LIMIT

LARGE_SIZE_LIMIT

public static int LARGE_SIZE_LIMIT
Constructor Detail

BufferAllocator

public BufferAllocator()
Method Detail

getCharBuffer

public char[] getCharBuffer(int size)

returnCharBuffer

public void returnCharBuffer(char[] c)

getByteBuffer

public byte[] getByteBuffer(int size)

returnByteBuffer

public void returnByteBuffer(byte[] b)


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