Class JSONDataSource

All Implemented Interfaces:
org.apache.axiom.om.OMDataSource

public class JSONDataSource extends AbstractJSONDataSource
JSON data source implementation for the "Mapped" convention.
  • Constructor Details

    • JSONDataSource

      public JSONDataSource(Reader jsonReader, String localName)
  • Method Details

    • getReader

      public XMLStreamReader getReader() throws XMLStreamException
      Gives the StAX reader using the "Mapped" formatted input JSON String.
      Specified by:
      getReader in interface org.apache.axiom.om.OMDataSource
      Specified by:
      getReader in class AbstractJSONDataSource
      Returns:
      The XMLStreamReader according to the JSON String.
      Throws:
      XMLStreamException - if there is an error while making the StAX reader.