Class 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 for most JDK implementations but uses the Unsafe mechanism of Java.
    • Constructor Detail

      • DirectFastStringService

        public DirectFastStringService()
    • Method Detail

      • toCharArray

        public char[] toCharArray​(String string)
        Specified by:
        toCharArray in interface org.apache.groovy.json.FastStringService
      • noCopyStringFromChars

        public String noCopyStringFromChars​(char[] chars)
        Specified by:
        noCopyStringFromChars in interface org.apache.groovy.json.FastStringService