org.apache.synapse.commons.staxon.core.json.stream

## Interface JsonStreamSource

- All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable, javax.xml.stream.Location
  All Known Implementing Classes:
    AddRootSource, StreamSourceDelegate

      public interface JsonStreamSource
      extends java.io.Closeable, javax.xml.stream.Location

  JSON stream source.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `JsonStreamSource.Value` Represents a simple value.

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static JsonStreamSource.Value` | `FALSE` "false" value
    `static JsonStreamSource.Value` | `NULL` "null" value
    `static JsonStreamSource.Value` | `TRUE` "true" value

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `endArray()` Consume `JsonStreamToken.END_ARRAY` token.
    `void` | `endObject()` Consume `JsonStreamToken.END_OBJECT` token.
    `java.lang.String` | `name()` Consume `JsonStreamToken.NAME` token.
    `JsonStreamToken` | `peek()` Peek next token.
    `void` | `startArray()` Consume `JsonStreamToken.START_ARRAY` token.
    `void` | `startObject()` Consume `JsonStreamToken.START_OBJECT` token.
    `JsonStreamSource.Value` | `value()` Consume `JsonStreamToken.VALUE` token.

    - ### Methods inherited from interface java.io.Closeable

      `close`

    - ### Methods inherited from interface javax.xml.stream.Location

      `getCharacterOffset, getColumnNumber, getLineNumber, getPublicId, getSystemId`

- - ### Field Detail

    - #### TRUE

          static final JsonStreamSource.Value TRUE

      "true" value

    - #### FALSE

          static final JsonStreamSource.Value FALSE

      "false" value

    - #### NULL

          static final JsonStreamSource.Value NULL

      "null" value

  - ### Method Detail

    - #### name

          java.lang.String name()
                         throws java.io.IOException

      Consume `JsonStreamToken.NAME` token.
      Returns:
        name
      Throws:
        `java.io.IOException`

    - #### value

          JsonStreamSource.Value value()
                                throws java.io.IOException

      Consume `JsonStreamToken.VALUE` token.
      Returns:
        value
      Throws:
        `java.io.IOException`

    - #### startObject

          void startObject()
                    throws java.io.IOException

      Consume `JsonStreamToken.START_OBJECT` token.
      Throws:
        `java.io.IOException`

    - #### endObject

          void endObject()
                  throws java.io.IOException

      Consume `JsonStreamToken.END_OBJECT` token.
      Throws:
        `java.io.IOException`

    - #### startArray

          void startArray()
                   throws java.io.IOException

      Consume `JsonStreamToken.START_ARRAY` token.
      Throws:
        `java.io.IOException`

    - #### endArray

          void endArray()
                 throws java.io.IOException

      Consume `JsonStreamToken.END_ARRAY` token.
      Throws:
        `java.io.IOException`

    - #### peek

          JsonStreamToken peek()
                        throws java.io.IOException

      Peek next token.
      Returns:
        token
      Throws:
        `java.io.IOException`

Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.