public class TempCharBuffer
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static int | 
SIZE  | 
| Constructor and Description | 
|---|
TempCharBuffer(int size)
Create a new TempBuffer. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static TempCharBuffer | 
allocate()
Allocate a TempCharBuffer, reusing one if available. 
 | 
void | 
clear()
Clears the buffer. 
 | 
static void | 
free(TempCharBuffer buf)
Frees a single buffer. 
 | 
static void | 
freeAll(TempCharBuffer buf)  | 
int | 
getAvailable()  | 
char[] | 
getBuffer()
Returns the buffer's underlying char array. 
 | 
int | 
getCapacity()  | 
int | 
getLength()
Returns the number of chars in the buffer. 
 | 
TempCharBuffer | 
getNext()  | 
void | 
setLength(int length)  | 
void | 
setNext(TempCharBuffer next)  | 
int | 
write(char[] buf,
     int offset,
     int length)  | 
public static TempCharBuffer allocate()
public void clear()
public final char[] getBuffer()
public final int getLength()
public final void setLength(int length)
public final int getCapacity()
public int getAvailable()
public final TempCharBuffer getNext()
public final void setNext(TempCharBuffer next)
public int write(char[] buf,
                 int offset,
                 int length)
public static void free(TempCharBuffer buf)
public static void freeAll(TempCharBuffer buf)