Package org.apache.groovy.jsondirect
Class DirectFastStringService
- java.lang.Object
-
- org.apache.groovy.jsondirect.DirectFastStringService
-
- All Implemented Interfaces:
org.apache.groovy.json.FastStringService
public class DirectFastStringService extends Object implements org.apache.groovy.json.FastStringService
Internal class for fast processing of Strings during JSON parsing - direct field writing version. Works for JDK 7 and 8 but uses the Unsafe mechanism of Java.
-
-
Constructor Summary
Constructors Constructor Description DirectFastStringService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringnoCopyStringFromChars(char[] chars)char[]toCharArray(String string)
-
-
-
Method Detail
-
toCharArray
public char[] toCharArray(String string)
- Specified by:
toCharArrayin interfaceorg.apache.groovy.json.FastStringService
-
noCopyStringFromChars
public String noCopyStringFromChars(char[] chars)
- Specified by:
noCopyStringFromCharsin interfaceorg.apache.groovy.json.FastStringService
-
-