public class CharBuffer
extends java.lang.Object
| Constructor and Description |
|---|
CharBuffer() |
CharBuffer(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(char c)
Appends a character to this buffer.
|
void |
append(int b,
java.lang.String encoding)
Appends a character to this buffer.
|
void |
append(java.lang.String text)
Appends a string to this buffer.
|
void |
reset()
Resets the size to zero.
|
void |
reset(int maxBufferSize)
Resets the size to zero and ensures that buffers size (internal
char[]) is not larger then maxBufferSize. |
java.lang.String |
toString() |
public void append(char c)
c - Character.public void append(int b,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
b - Byte of character.encoding - Encoding of byte.java.io.UnsupportedEncodingExceptionpublic void append(java.lang.String text)
text - String.public java.lang.String toString()
toString in class java.lang.Objectpublic void reset()
public void reset(int maxBufferSize)
char[]) is not larger then maxBufferSize.maxBufferSize - Maximum size of buffer after reset.© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.