Package org.eclipse.jetty.util.ajax
Class JSON.StringSource
java.lang.Object
org.eclipse.jetty.util.ajax.JSON.StringSource
- All Implemented Interfaces:
JSON.Source
- Enclosing class:
- JSON
An in-memory source for a JSON string.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
StringSource
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceJSON.Source
-
next
public char next()- Specified by:
next
in interfaceJSON.Source
-
peek
public char peek()- Specified by:
peek
in interfaceJSON.Source
-
toString
-
scratchBuffer
public char[] scratchBuffer()- Specified by:
scratchBuffer
in interfaceJSON.Source
-