- groovy.json.internal.CharBuf
-
- All Implemented Interfaces and Traits:
- CharSequence
public class CharBuf
extends Writer
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-
-
Constructor Summary
Constructors
Constructor and description |
CharBuf
(char[] buffer)
|
CharBuf
(byte[] bytes)
|
protected CharBuf
(int capacity)
|
protected CharBuf
()
|
-
Methods Summary
-
Inherited Methods Summary
Inherited Methods
Methods inherited from class |
Name |
class Writer |
append, append, append, append, append, append, write, write, write, write, write, close, flush, 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(char[] charArray)
-
public final CharBuf addJsonFieldName(char[] chars)
-
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 short shortValue()
-
public char[] toCharArray()
-
public Number toIntegerWrapper()
-
public String toStringAndRecycle()
-
public void write(char[] cbuf, int off, int len)
Copyright © 2003-2015 The Apache Software Foundation. All rights reserved.