Package org.apache.groovy.json
Class DefaultFastStringService
java.lang.Object
org.apache.groovy.json.DefaultFastStringService
- All Implemented Interfaces:
FastStringService
Internal class for fast processing of Strings during JSON parsing - default version
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnoCopyStringFromChars
(char[] chars) char[]
toCharArray
(String string)
-
Constructor Details
-
DefaultFastStringService
public DefaultFastStringService()
-
-
Method Details
-
toCharArray
- Specified by:
toCharArray
in interfaceFastStringService
- Parameters:
string
- string to grab array from.- Returns:
- char array from string
-
noCopyStringFromChars
- Specified by:
noCopyStringFromChars
in interfaceFastStringService
- Parameters:
chars
- to shove array into.- Returns:
- new string with chars copied into it
-