Class JsonReader

java.lang.Object
com.dslplatform.compiler.client.json.JsonReader

final class JsonReader extends Object
  • Field Details

    • WHITESPACE

      private static final boolean[] WHITESPACE
    • tokenStart

      private int tokenStart
    • currentIndex

      private int currentIndex
    • last

      private byte last
    • length

      protected int length
    • tmp

      private final char[] tmp
    • buffer

      private final byte[] buffer
    • UTF_8

      private static final Charset UTF_8
  • Constructor Details

    • JsonReader

      private JsonReader(char[] tmp, byte[] buffer, int length)
    • JsonReader

      public JsonReader(byte[] buffer, int length) throws IOException
      Throws:
      IOException
    • JsonReader

      public JsonReader(byte[] buffer, int length, char[] tmp) throws IOException
      Throws:
      IOException
  • Method Details

    • length

      public int length()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • read

      public byte read() throws IOException
      Throws:
      IOException
    • isEndOfStream

      boolean isEndOfStream() throws IOException
      Throws:
      IOException
    • last

      public final byte last()
    • getTokenStart

      public final int getTokenStart()
    • getCurrentIndex

      public final int getCurrentIndex()
    • readNumber

      public final char[] readNumber()
    • readString

      public final String readString() throws IOException
      Throws:
      IOException
    • hexToInt

      private static int hexToInt(byte value) throws IOException
      Throws:
      IOException
    • wasWhiteSpace

      private boolean wasWhiteSpace()
    • getNextToken

      public final byte getNextToken() throws IOException
      Throws:
      IOException
    • positionInStream

      public final long positionInStream()
    • wasNull

      public final boolean wasNull() throws IOException
      Throws:
      IOException
    • wasTrue

      public final boolean wasTrue() throws IOException
      Throws:
      IOException
    • wasFalse

      public final boolean wasFalse() throws IOException
      Throws:
      IOException