|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.vfs.TempCharBuffer
public class TempCharBuffer
Field Summary | |
---|---|
static int |
SIZE
|
Constructor Summary | |
---|---|
TempCharBuffer(int size)
Create a new TempBuffer. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SIZE
Constructor Detail |
---|
public TempCharBuffer(int size)
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |