public class CharBuf
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected char[] |
buffer |
protected int |
capacity |
protected int |
location |
Modifier | Constructor and Description |
---|---|
protected |
CharBuf() |
protected |
CharBuf(int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
add(char ch) |
CharBuf |
add(char[] chars) |
CharBuf |
add(int i) |
CharBuf |
add(java.lang.String str) |
CharBuf |
addLine(java.lang.String str) |
static CharBuf |
create(int capacity) |
static CharBuf |
createExact(int capacity) |
void |
init() |
java.lang.String |
toString() |
protected int capacity
protected int location
protected char[] buffer
public static CharBuf createExact(int capacity)
public static CharBuf create(int capacity)
public void init()
public CharBuf add(java.lang.String str)
public CharBuf add(int i)
public CharBuf addLine(java.lang.String str)
public CharBuf add(char[] chars)
public void add(char ch)
public java.lang.String toString()
toString
in class java.lang.Object