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

## Class AddRootSource

- java.lang.Object
- - org.apache.synapse.commons.staxon.core.json.stream.util.StreamSourceDelegate
  - - org.apache.synapse.commons.staxon.core.json.stream.util.AddRootSource

- All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, javax.xml.stream.Location, JsonStreamSource

      public class AddRootSource
      extends StreamSourceDelegate

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.apache.synapse.commons.staxon.core.json.stream.JsonStreamSource

      `JsonStreamSource.Value`

  - ### Field Summary

    - ### Fields inherited from interface org.apache.synapse.commons.staxon.core.json.stream.JsonStreamSource

      `FALSE, NULL, TRUE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AddRootSource(JsonStreamSource delegate, javax.xml.namespace.QName root, char namespaceSeparator)`

  - ### Method Summary

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

    - ### Methods inherited from class org.apache.synapse.commons.staxon.core.json.stream.util.StreamSourceDelegate

      `close, copy, endArray, getCharacterOffset, getColumnNumber, getLineNumber, getPublicId, getSystemId, startArray`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AddRootSource

          public AddRootSource(JsonStreamSource delegate,
                               javax.xml.namespace.QName root,
                               char namespaceSeparator)

  - ### Method Detail

    - #### name

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

      Description copied from interface: `JsonStreamSource`
      Consume `JsonStreamToken.NAME` token.
      Specified by:
        `name` in interface `JsonStreamSource`
      Overrides:
        `name` in class `StreamSourceDelegate`
      Returns:
        name
      Throws:
        `java.io.IOException`

    - #### value

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

      Description copied from interface: `JsonStreamSource`
      Consume `JsonStreamToken.VALUE` token.
      Specified by:
        `value` in interface `JsonStreamSource`
      Overrides:
        `value` in class `StreamSourceDelegate`
      Returns:
        value
      Throws:
        `java.io.IOException`

    - #### startObject

          public void startObject()
                           throws java.io.IOException

      Description copied from interface: `JsonStreamSource`
      Consume `JsonStreamToken.START_OBJECT` token.
      Specified by:
        `startObject` in interface `JsonStreamSource`
      Overrides:
        `startObject` in class `StreamSourceDelegate`
      Throws:
        `java.io.IOException`

    - #### endObject

          public void endObject()
                         throws java.io.IOException

      Description copied from interface: `JsonStreamSource`
      Consume `JsonStreamToken.END_OBJECT` token.
      Specified by:
        `endObject` in interface `JsonStreamSource`
      Overrides:
        `endObject` in class `StreamSourceDelegate`
      Throws:
        `java.io.IOException`

    - #### peek

          public JsonStreamToken peek()
                               throws java.io.IOException

      Description copied from interface: `JsonStreamSource`
      Peek next token.
      Specified by:
        `peek` in interface `JsonStreamSource`
      Overrides:
        `peek` in class `StreamSourceDelegate`
      Returns:
        token
      Throws:
        `java.io.IOException`

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