org.apache.axis2.json
Class JSONDataSource
java.lang.Object
org.apache.axis2.json.AbstractJSONDataSource
org.apache.axis2.json.JSONDataSource
- All Implemented Interfaces:
- org.apache.axiom.om.OMDataSource
public class JSONDataSource
- extends AbstractJSONDataSource
JSON data source implementation for the "Mapped" convention.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONDataSource
public JSONDataSource(Reader jsonReader,
String localName)
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.
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.