public class CharBuf extends Writer implements 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
chars, codePoints
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 flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void init()
public final CharBuf add(int i)
public final CharBuf addInt(int i)
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 add(float d)
public final CharBuf addFloat(float d)
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(CharSequence str)
public CharBuf add(char[] chars)
public final CharBuf addChars(char[] chars)
public final CharBuf addQuoted(char[] chars)
public final CharBuf addJsonEscapedString(char[] charArray)
public final CharBuf addJsonFieldName(char[] chars)
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 CharSequence
public char charAt(int index)
charAt
in interface CharSequence
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
public String toString()
toString
in interface CharSequence
toString
in class Object
public String toDebugString()
public 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 Number toIntegerWrapper()
public final void addNull()
public void removeLastChar()
public CharBuf addBigDecimal(BigDecimal key)
public CharBuf addBigInteger(BigInteger key)
public final CharBuf addLong(long l)
public final CharBuf decodeJsonString(char[] chars)
public final CharBuf decodeJsonString(char[] chars, int start, int to)