- org.apache.groovy.json.internal.CharBuf
-
-
Constructor Summary
Constructors
Constructor and description |
CharBuf
(char[] buffer)
|
CharBuf
(byte[] bytes)
|
protected CharBuf
(int capacity)
|
protected CharBuf
()
|
-
Methods Summary
Methods
Type Params |
Return Type |
Name and description |
|
void |
_len(int location)
|
|
CharBuf |
add(String str)
|
|
CharBuf |
add(int i)
|
|
CharBuf |
add(boolean b)
|
|
CharBuf |
add(byte i)
|
|
CharBuf |
add(short i)
|
|
CharBuf |
add(long l)
|
|
CharBuf |
add(double d)
|
|
CharBuf |
add(float d)
|
|
CharBuf |
add(char[] chars)
|
|
CharBuf |
add(char[] chars, int length)
|
|
CharBuf |
add(byte[] chars)
|
|
CharBuf |
add(byte[] bytes, int start, int end)
|
|
CharBuf |
add(char ch)
|
|
CharBuf |
addBigDecimal(BigDecimal key)
|
|
CharBuf |
addBigInteger(BigInteger key)
|
|
CharBuf |
addBoolean(boolean b)
|
|
CharBuf |
addByte(byte i)
|
|
CharBuf |
addChar(byte i)
|
|
CharBuf |
addChar(int i)
|
|
CharBuf |
addChar(short i)
|
|
CharBuf |
addChar(char ch)
|
|
CharBuf |
addChars(char[] chars)
|
|
CharBuf |
addDouble(double d)
|
|
CharBuf |
addDouble(Double key)
|
|
CharBuf |
addFloat(float d)
|
|
CharBuf |
addFloat(Float key)
|
|
CharBuf |
addInt(int i)
|
|
CharBuf |
addInt(Integer key)
|
|
CharBuf |
addJsonEscapedString(String jsonString)
|
|
CharBuf |
addJsonEscapedString(String jsonString, boolean disableUnicodeEscaping)
|
|
CharBuf |
addJsonEscapedString(char[] charArray)
|
|
CharBuf |
addJsonEscapedString(char[] charArray, boolean disableUnicodeEscaping)
|
|
CharBuf |
addJsonFieldName(String str)
|
|
CharBuf |
addJsonFieldName(String str, boolean disableUnicodeEscaping)
|
|
CharBuf |
addJsonFieldName(char[] chars)
|
|
CharBuf |
addJsonFieldName(char[] chars, boolean disableUnicodeEscaping)
|
|
CharBuf |
addLine(String str)
|
|
CharBuf |
addLine(CharSequence str)
|
|
CharBuf |
addLong(long l)
|
|
CharBuf |
addLong(Long key)
|
|
void |
addNull()
|
|
CharBuf |
addQuoted(char[] chars)
|
|
CharBuf |
addQuoted(String str)
|
|
CharBuf |
addShort(short i)
|
|
CharBuf |
addString(String str)
|
|
byte |
byteValue()
|
|
char |
charAt(int index)
|
|
void |
close()
|
|
static CharBuf |
create(int capacity)
|
|
static CharBuf |
create(char[] buffer)
|
|
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()
|
|
void |
removeLastChar(char expect)
|
|
short |
shortValue()
|
|
CharSequence |
subSequence(int start, int end)
|
|
char[] |
toCharArray()
|
|
String |
toDebugString()
|
|
Number |
toIntegerWrapper()
|
|
String |
toString()
|
|
String |
toStringAndRecycle()
|
|
void |
write(char[] cbuf, int off, int len)
|
-
Inherited Methods Summary
Inherited Methods
Methods inherited from class |
Name |
class Writer |
append, append, append, append, append, append, write, write, write, write, write, flush, close, nullWriter, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
-
-
Constructor Detail
-
public CharBuf(char[] buffer)
-
public CharBuf(byte[] bytes)
-
protected CharBuf(int capacity)
-
Method Detail
-
public void _len(int location)
-
public final CharBuf add(boolean b)
-
public CharBuf add(char[] chars, int length)
-
public CharBuf add(byte[] bytes, int start, int end)
-
public final CharBuf addBoolean(boolean b)
-
public final CharBuf addByte(byte i)
-
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 final CharBuf addChars(char[] chars)
-
public final CharBuf addDouble(double d)
-
public final CharBuf addFloat(float d)
-
public final CharBuf addJsonEscapedString(String jsonString, boolean disableUnicodeEscaping)
-
public final CharBuf addJsonEscapedString(char[] charArray)
-
public final CharBuf addJsonEscapedString(char[] charArray, boolean disableUnicodeEscaping)
-
public final CharBuf addJsonFieldName(String str, boolean disableUnicodeEscaping)
-
public final CharBuf addJsonFieldName(char[] chars)
-
public final CharBuf addJsonFieldName(char[] chars, boolean disableUnicodeEscaping)
-
public final CharBuf addLong(long l)
-
public final void addNull()
-
public final CharBuf addQuoted(char[] chars)
-
public final CharBuf addShort(short i)
-
public char charAt(int index)
-
public static CharBuf create(int capacity)
-
public static CharBuf create(char[] buffer)
-
public static CharBuf createExact(int capacity)
-
public final CharBuf decodeJsonString(char[] chars)
-
public final CharBuf decodeJsonString(char[] chars, int start, int to)
-
public double doubleValue()
-
public float floatValue()
-
public char[] readForRecycle()
-
public void removeLastChar()
-
public void removeLastChar(char expect)
-
public short shortValue()
-
public char[] toCharArray()
-
public Number toIntegerWrapper()
-
public String toStringAndRecycle()
-
public void write(char[] cbuf, int off, int len)
Copyright © 2003-2018 The Apache Software Foundation. All rights reserved.