Package org.apache.groovy.json.internal
Class FastStringUtils
java.lang.Object
org.apache.groovy.json.internal.FastStringUtils
Internal class for fast processing of Strings during JSON parsing
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
noCopyStringFromChars
(char[] chars) static char[]
toCharArray
(CharSequence charSequence) static char[]
toCharArray
(String string)
-
Constructor Details
-
FastStringUtils
public FastStringUtils()
-
-
Method Details
-
toCharArray
- Parameters:
string
- string to grab array from.- Returns:
- char array from string
-
toCharArray
- Parameters:
charSequence
- to grab array from.- Returns:
- char array from char sequence
-
noCopyStringFromChars
- Parameters:
chars
- to shove array into.- Returns:
- new string with chars copied into it
-