Package org.apache.groovy.json
Class DefaultFastStringService
java.lang.Object
org.apache.groovy.json.DefaultFastStringService
- All Implemented Interfaces:
- FastStringService
public class DefaultFastStringService extends java.lang.Object implements FastStringService
Internal class for fast processing of Strings during JSON parsing - default version
- 
Constructor SummaryConstructors Constructor Description DefaultFastStringService()
- 
Method SummaryModifier and Type Method Description java.lang.StringnoCopyStringFromChars(char[] chars)char[]toCharArray(java.lang.String string)Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
DefaultFastStringServicepublic DefaultFastStringService()
 
- 
- 
Method Details- 
toCharArraypublic char[] toCharArray(java.lang.String string)- Specified by:
- toCharArrayin interface- FastStringService
- Parameters:
- string- string to grab array from.
- Returns:
- char array from string
 
- 
noCopyStringFromCharspublic java.lang.String noCopyStringFromChars(char[] chars)- Specified by:
- noCopyStringFromCharsin interface- FastStringService
- Parameters:
- chars- to shove array into.
- Returns:
- new string with chars copied into it
 
 
-