Class JSON.ReaderSource

java.lang.Object
org.eclipse.jetty.util.ajax.JSON.ReaderSource
All Implemented Interfaces:
JSON.Source
Enclosing class:
JSON

public static class JSON.ReaderSource extends Object implements JSON.Source
  • Field Details

    • _reader

      private Reader _reader
    • _next

      private int _next
    • scratch

      private char[] scratch
  • Constructor Details

    • ReaderSource

      public ReaderSource(Reader r)
  • Method Details

    • setReader

      public void setReader(Reader reader)
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface JSON.Source
    • next

      public char next()
      Specified by:
      next in interface JSON.Source
    • peek

      public char peek()
      Specified by:
      peek in interface JSON.Source
    • getNext

      private void getNext()
    • scratchBuffer

      public char[] scratchBuffer()
      Specified by:
      scratchBuffer in interface JSON.Source