reming

JsonParser

Related Docs: object JsonParser | package reming

class JsonParser extends AnyRef

JSON parser with pull semantics. Borrows heavily from the main JsonParser by Mathias Doenitz. Public methods will throw DeserializationException if the expected value isn't next in the input.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsonParser
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsonParser(input: ParserInput)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def endArray(): Unit

    Ends an array that was started with startArray.

  7. def endObject(): Unit

    Finishes parsing an object.

    Finishes parsing an object. This will call any handlers registered for field names.

  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. def maybeReadNull(): Boolean

    Looks for a null in the stream.

    Looks for a null in the stream. If the next item in the stream is a null literal, this will read it and return true; else, it leaves the stream as-is and returns false.

  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. def read[T]()(implicit handler: JsonReader[T]): T

    Reads a type from the stream.

  19. def readArray[T]()(implicit handler: JsonReader[T]): Iterator[T]

    Reads an array into an iterator.

    Reads an array into an iterator. If additional methods are called on this parser before the returned iterator is exhausted, behavior is undefined.

  20. def readArrayItem[T]()(implicit handler: JsonReader[T]): T

    Read an item from an array.

    Read an item from an array. Behavior is undefined if not inside of an array when called.

  21. def readBoolean(): Boolean

    Reads a single boolean literal from the input.

    Reads a single boolean literal from the input.

    returns

    the value of the literal

    Exceptions thrown

    DeserializationException if the next item in the stream isn't a boolean

  22. def readField[T](key: String)(implicit fieldReader: JsonReader[T]): ObjectValue[T]

    Registers a handler for a given object key.

    Registers a handler for a given object key. If not called within parsing an object, behavior is undefined.

  23. def readInt(): Int

  24. def readLong(): Long

  25. def readNumber(): BigDecimal

    Reads a number from the stream.

  26. def readObject[T]()(implicit handler: JsonReader[T]): Iterator[(String, T)]

    Reads an object with same-typed values into an iterator.

    Reads an object with same-typed values into an iterator. If additional methods are called on this parser before the returned iterator is exhausted, behavior is undefined.

  27. def readString(): String

    Reads a single string literal from the input.

    Reads a single string literal from the input.

    returns

    the value of the string

    Exceptions thrown

    DeserializationException if the next item in the stream isn't a string

  28. def skipNextValue(): Unit

    Skips the next value in the JSON stream.

  29. def startArray[T]()(implicit handler: JsonReader[T]): T

    Start a JS array, and reads the first item.

    Start a JS array, and reads the first item.

    Exceptions thrown

    DeserializationException if there isn't a start of an array in the stream

  30. def startObject(): Unit

    Start a JS object.

    Start a JS object.

    Exceptions thrown

    DeserializationException if there isn't a start of an object in the stream

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped