CharBuf (Groovy 4.0.15)

Package: org.apache.groovy.json.internal

## [Java] Class CharBuf

- org.apache.groovy.json.internal.CharBuf

- All Implemented Interfaces and Traits:
    CharSequence

      public class CharBuf
      extends Writer
      implements CharSequence

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `protected char[]` | `buffer` |
    `protected int` | `capacity` |
    `protected int` | `location` |

  - ### 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
    --- | --- | ---
    `` | `public void` | `_len(int location)`
    `` | `public CharBuf` | `add(char[] chars)`
    `` | `public final CharBuf` | `add(String str)`
    `` | `public final CharBuf` | `add(int i)`
    `` | `public final CharBuf` | `add(boolean b)`
    `` | `public final CharBuf` | `add(byte i)`
    `` | `public final CharBuf` | `add(short i)`
    `` | `public final CharBuf` | `add(long l)`
    `` | `public final CharBuf` | `add(double d)`
    `` | `public final CharBuf` | `add(float d)`
    `` | `public CharBuf` | `add(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 CharBuf` | `addBigDecimal(BigDecimal key)`
    `` | `public CharBuf` | `addBigInteger(BigInteger key)`
    `` | `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` | `addDouble(Double key)`
    `` | `public final CharBuf` | `addFloat(float d)`
    `` | `public final CharBuf` | `addFloat(Float key)`
    `` | `public final CharBuf` | `addInt(int i)`
    `` | `public final CharBuf` | `addInt(Integer key)`
    `` | `public final CharBuf` | `addJsonEscapedString(String jsonString)`
    `` | `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)`
    `` | `public final CharBuf` | `addJsonFieldName(String str, boolean disableUnicodeEscaping)`
    `` | `public final CharBuf` | `addJsonFieldName(char[] chars)`
    `` | `public final CharBuf` | `addJsonFieldName(char[] chars, boolean disableUnicodeEscaping)`
    `` | `public CharBuf` | `addLine(String str)`
    `` | `public CharBuf` | `addLine(CharSequence str)`
    `` | `public final CharBuf` | `addLong(long l)`
    `` | `public final CharBuf` | `addLong(Long key)`
    `` | `public final void` | `addNull()`
    `` | `public final CharBuf` | `addQuoted(char[] chars)`
    `` | `public final CharBuf` | `addQuoted(String str)`
    `` | `public final CharBuf` | `addShort(short i)`
    `` | `public final CharBuf` | `addString(String str)`
    `` | `public byte` | `byteValue()`
    `` | `public char` | `charAt(int index)`
    `` | `public void` | `close()`
    `` | `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 void` | `flush()`
    `` | `public void` | `init()`
    `` | `public int` | `intValue()`
    `` | `public int` | `len()`
    `` | `public int` | `length()`
    `` | `public long` | `longValue()`
    `` | `public char[]` | `readForRecycle()`
    `` | `public void` | `recycle()`
    `` | `public void` | `removeLastChar()`
    `` | `public void` | `removeLastChar(char expect)`
    `` | `public short` | `shortValue()`
    `` | `public CharSequence` | `subSequence(int start, int end)`
    `` | `public char[]` | `toCharArray()`
    `` | `public String` | `toDebugString()`
    `` | `public Number` | `toIntegerWrapper()`
    `` | `public String` | `toString()`
    `` | `public String` | `toStringAndRecycle()`
    `` | `public 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, flush, write, write, write, write, write, close, nullWriter, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Field Detail

    - #### protected char[] buffer

    - #### protected int capacity

    - #### protected int location

  - ### Constructor Detail

    - #### public CharBuf(char[] buffer)

    - #### public CharBuf(byte[] bytes)

    - #### protected CharBuf(int capacity)

    - #### protected CharBuf()

  - ### Method Detail

    - #### public void _len(int location)

    - #### @Override
      public CharBuf add(char[] chars)

    - #### public final CharBuf add(String str)

    - #### public final CharBuf add(int i)

    - #### public final CharBuf add(boolean b)

    - #### public final CharBuf add(byte i)

    - #### public final CharBuf add(short i)

    - #### public final CharBuf add(long l)

    - #### public final CharBuf add(double d)

    - #### public final CharBuf add(float d)

    - #### public CharBuf add(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 CharBuf addBigDecimal(BigDecimal key)

    - #### public CharBuf addBigInteger(BigInteger key)

    - #### 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 addDouble(Double key)

    - #### public final CharBuf addFloat(float d)

    - #### public final CharBuf addFloat(Float key)

    - #### public final CharBuf addInt(int i)

    - #### public final CharBuf addInt(Integer key)

    - #### public final CharBuf addJsonEscapedString(String jsonString)

    - #### 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)

    - #### public final CharBuf addJsonFieldName(String str, boolean disableUnicodeEscaping)

    - #### public final CharBuf addJsonFieldName(char[] chars)

    - #### public final CharBuf addJsonFieldName(char[] chars, boolean disableUnicodeEscaping)

    - #### public CharBuf addLine(String str)

    - #### public CharBuf addLine(CharSequence str)

    - #### public final CharBuf addLong(long l)

    - #### public final CharBuf addLong(Long key)

    - #### public final void addNull()

    - #### public final CharBuf addQuoted(char[] chars)

    - #### public final CharBuf addQuoted(String str)

    - #### public final CharBuf addShort(short i)

    - #### public final CharBuf addString(String str)

    - #### public byte byteValue()

    - #### @Override
      public char charAt(int index)

    - #### @Override
      public void close()

    - #### 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()

    - #### @Override
      public void flush()

    - #### public void init()

    - #### public int intValue()

    - #### public int len()

    - #### @Override
      public int length()

    - #### public long longValue()

    - #### public char[] readForRecycle()

    - #### public void recycle()

    - #### public void removeLastChar()

    - #### public void removeLastChar(char expect)

    - #### public short shortValue()

    - #### @Override
      public CharSequence subSequence(int start, int end)

    - #### public char[] toCharArray()

    - #### public String toDebugString()

    - #### public Number toIntegerWrapper()

    - #### @Override
      public String toString()

    - #### public String toStringAndRecycle()

    - #### @Override
      public void write(char[] cbuf, int off, int len)