Class DirectFastStringService
java.lang.Object
org.apache.groovy.jsondirect.DirectFastStringService
- All Implemented Interfaces:
FastStringService
Internal class for fast processing of Strings during JSON parsing - direct field writing version.
Works for JDK 7 and 8 for most JDK implementations but uses the Unsafe mechanism of Java.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnoCopyStringFromChars(char[] chars) char[]toCharArray(String string)
-
Constructor Details
-
DirectFastStringService
public DirectFastStringService()
-
-
Method Details
-
toCharArray
- Specified by:
toCharArrayin interfaceFastStringService- Parameters:
string- string to grab array from.- Returns:
- char array from string
-
noCopyStringFromChars
- Specified by:
noCopyStringFromCharsin interfaceFastStringService- Parameters:
chars- to shove array into.- Returns:
- new string with chars copied into it
-