A2uiJsonReader


public interface A2uiJsonReader extends AutoCloseable


Reads a stream of JSON tokens.

Use this interface to pull JSON tokens sequentially without loading the entire document.

Summary

Public methods

abstract void

Consumes the opening delimiter of a JSON array.

abstract void

Consumes the opening delimiter of a JSON object.

abstract void

Consumes the closing delimiter of a JSON array.

abstract void

Consumes the closing delimiter of a JSON object.

abstract boolean

Returns true if the current object or array has more elements.

abstract boolean

Consumes and returns the next boolean value.

abstract double

Consumes and returns the next double value.

abstract int

Consumes and returns the next int value.

abstract long

Consumes and returns the next long value.

abstract @NonNull String

Consumes and returns the next property name.

abstract void

Consumes the next null token.

abstract @NonNull String

Consumes and returns the next string value.

abstract @NonNull A2uiJsonToken

Returns the type of the next token without consuming it.

abstract void

Skips the next value and all its children.

Inherited methods

From java.lang.AutoCloseable
abstract void

Public methods

beginArray

Added in 1.0.0-alpha01
abstract void beginArray()

Consumes the opening delimiter of a JSON array.

beginObject

Added in 1.0.0-alpha01
abstract void beginObject()

Consumes the opening delimiter of a JSON object.

endArray

Added in 1.0.0-alpha01
abstract void endArray()

Consumes the closing delimiter of a JSON array.

endObject

Added in 1.0.0-alpha01
abstract void endObject()

Consumes the closing delimiter of a JSON object.

hasNext

Added in 1.0.0-alpha01
abstract boolean hasNext()

Returns true if the current object or array has more elements.

nextBoolean

Added in 1.0.0-alpha01
abstract boolean nextBoolean()

Consumes and returns the next boolean value.

nextDouble

Added in 1.0.0-alpha01
abstract double nextDouble()

Consumes and returns the next double value.

nextInt

Added in 1.0.0-alpha01
abstract int nextInt()

Consumes and returns the next int value.

nextLong

Added in 1.0.0-alpha01
abstract long nextLong()

Consumes and returns the next long value.

nextName

Added in 1.0.0-alpha01
abstract @NonNull String nextName()

Consumes and returns the next property name.

nextNull

Added in 1.0.0-alpha01
abstract void nextNull()

Consumes the next null token.

nextString

Added in 1.0.0-alpha01
abstract @NonNull String nextString()

Consumes and returns the next string value.

peek

Added in 1.0.0-alpha01
abstract @NonNull A2uiJsonToken peek()

Returns the type of the next token without consuming it.

skipValue

Added in 1.0.0-alpha01
abstract void skipValue()

Skips the next value and all its children.