public class CharBuf
extends java.io.Writer
implements java.lang.CharSequence
Modifier and Type | Field and Description |
---|---|
protected char[] |
buffer |
protected int |
capacity |
protected int |
location |
Modifier | Constructor and Description |
---|---|
protected |
CharBuf() |
|
CharBuf(byte[] bytes) |
|
CharBuf(char[] buffer) |
protected |
CharBuf(int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
_len(int location) |
CharBuf |
add(boolean b) |
CharBuf |
add(byte i) |
CharBuf |
add(byte[] chars) |
CharBuf |
add(byte[] bytes,
int start,
int end) |
CharBuf |
add(char ch) |
CharBuf |
add(char[] chars) |
CharBuf |
add(char[] chars,
int length) |
CharBuf |
add(double d) |
CharBuf |
add(float d) |
CharBuf |
add(int i) |
CharBuf |
add(long l) |
CharBuf |
add(short i) |
CharBuf |
add(java.lang.String str) |
CharBuf |
addBigDecimal(java.math.BigDecimal key) |
CharBuf |
addBigInteger(java.math.BigInteger key) |
CharBuf |
addBoolean(boolean b) |
CharBuf |
addByte(byte i) |
CharBuf |
addChar(byte i) |
CharBuf |
addChar(char ch) |
CharBuf |
addChar(int i) |
CharBuf |
addChar(short i) |
CharBuf |
addChars(char[] chars) |
CharBuf |
addDouble(double d) |
CharBuf |
addDouble(java.lang.Double key) |
CharBuf |
addFloat(float d) |
CharBuf |
addFloat(java.lang.Float key) |
CharBuf |
addInt(int i) |
CharBuf |
addInt(java.lang.Integer key) |
CharBuf |
addJsonEscapedString(char[] charArray) |
CharBuf |
addJsonEscapedString(java.lang.String jsonString) |
CharBuf |
addJsonFieldName(char[] chars) |
CharBuf |
addJsonFieldName(java.lang.String str) |
CharBuf |
addLine(java.lang.CharSequence str) |
CharBuf |
addLine(java.lang.String str) |
CharBuf |
addLong(long l) |
CharBuf |
addLong(java.lang.Long key) |
void |
addNull() |
CharBuf |
addQuoted(char[] chars) |
CharBuf |
addQuoted(java.lang.String str) |
CharBuf |
addShort(short i) |
CharBuf |
addString(java.lang.String str) |
byte |
byteValue() |
char |
charAt(int index) |
void |
close() |
static CharBuf |
create(char[] buffer) |
static CharBuf |
create(int capacity) |
static CharBuf |
createExact(int capacity) |
CharBuf |
decodeJsonString(char[] chars) |
CharBuf |
decodeJsonString(char[] chars,
int start,
int to) |
double |
doubleValue() |
float |
floatValue() |
void |
flush() |
void |
init() |
int |
intValue() |
int |
len() |
int |
length() |
long |
longValue() |
char[] |
readForRecycle() |
void |
recycle() |
void |
removeLastChar() |
short |
shortValue() |
java.lang.CharSequence |
subSequence(int start,
int end) |
char[] |
toCharArray() |
java.lang.String |
toDebugString() |
java.lang.Number |
toIntegerWrapper() |
java.lang.String |
toString() |
java.lang.String |
toStringAndRecycle() |
void |
write(char[] cbuf,
int off,
int len) |
protected int capacity
protected int location
protected char[] buffer
public CharBuf(char[] buffer)
public CharBuf(byte[] bytes)
protected CharBuf(int capacity)
protected CharBuf()
public static CharBuf createExact(int capacity)
public static CharBuf create(int capacity)
public static CharBuf create(char[] buffer)
public void write(char[] cbuf, int off, int len)
write
in class java.io.Writer
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
java.io.IOException
public void init()
public final CharBuf add(java.lang.String str)
public final CharBuf addString(java.lang.String str)
public final CharBuf add(int i)
public final CharBuf addInt(int i)
public final CharBuf addInt(java.lang.Integer key)
public final CharBuf add(boolean b)
public final CharBuf addBoolean(boolean b)
public final CharBuf add(byte i)
public final CharBuf addByte(byte i)
public final CharBuf add(short i)
public final CharBuf addShort(short i)
public final CharBuf add(long l)
public final CharBuf add(double d)
public final CharBuf addDouble(double d)
public final CharBuf addDouble(java.lang.Double key)
public final CharBuf add(float d)
public final CharBuf addFloat(float d)
public final CharBuf addFloat(java.lang.Float key)
public final CharBuf addChar(byte i)
public final CharBuf addChar(int i)
public final CharBuf addChar(short i)
public final CharBuf addChar(char ch)
public CharBuf addLine(java.lang.String str)
public CharBuf addLine(java.lang.CharSequence str)
public CharBuf add(char[] chars)
public final CharBuf addChars(char[] chars)
public final CharBuf addQuoted(char[] chars)
public final CharBuf addJsonEscapedString(java.lang.String jsonString)
public final CharBuf addJsonEscapedString(char[] charArray)
public final CharBuf addJsonFieldName(java.lang.String str)
public final CharBuf addJsonFieldName(char[] chars)
public final CharBuf addQuoted(java.lang.String str)
public CharBuf add(char[] chars, int length)
public CharBuf add(byte[] chars)
public CharBuf add(byte[] bytes, int start, int end)
public final CharBuf add(char ch)
public int length()
length
in interface java.lang.CharSequence
public char charAt(int index)
charAt
in interface java.lang.CharSequence
public java.lang.CharSequence subSequence(int start, int end)
subSequence
in interface java.lang.CharSequence
public java.lang.String toString()
toString
in interface java.lang.CharSequence
toString
in class java.lang.Object
public java.lang.String toDebugString()
public java.lang.String toStringAndRecycle()
public int len()
public char[] toCharArray()
public void _len(int location)
public char[] readForRecycle()
public void recycle()
public double doubleValue()
public float floatValue()
public int intValue()
public long longValue()
public byte byteValue()
public short shortValue()
public java.lang.Number toIntegerWrapper()
public final void addNull()
public void removeLastChar()
public CharBuf addBigDecimal(java.math.BigDecimal key)
public CharBuf addBigInteger(java.math.BigInteger key)
public final CharBuf addLong(long l)
public final CharBuf addLong(java.lang.Long key)
public final CharBuf decodeJsonString(char[] chars)
public final CharBuf decodeJsonString(char[] chars, int start, int to)