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
public static class JSON.StringSource extends java.lang.Object implements JSON.Source
-
-
Constructor Summary
Constructors Constructor Description StringSource(java.lang.String s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()charnext()charpeek()char[]scratchBuffer()java.lang.StringtoString()
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceJSON.Source
-
next
public char next()
- Specified by:
nextin interfaceJSON.Source
-
peek
public char peek()
- Specified by:
peekin interfaceJSON.Source
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
scratchBuffer
public char[] scratchBuffer()
- Specified by:
scratchBufferin interfaceJSON.Source
-
-