org.apache.axis2.json
Class JSONBadgerfishDataSource
java.lang.Object
org.apache.axis2.json.JSONDataSource
org.apache.axis2.json.JSONBadgerfishDataSource
- All Implemented Interfaces:
- org.apache.axiom.om.OMDataSource
public class JSONBadgerfishDataSource
- extends JSONDataSource
JSONDataSource keeps the JSON String inside and consumes it when needed. This is to be kept in
the OMSourcedElementImpl and can be used either to expand the tree or get the JSON String
directly without expanding. This uses the "Badgerfish" JSON convention.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONBadgerfishDataSource
public JSONBadgerfishDataSource(InputStream jsonInputStream,
String localName)
getReader
public XMLStreamReader getReader()
throws XMLStreamException
- Gives the StAX reader using the "Badgerfish" formatted input JSON String.
- Specified by:
getReader
in interface org.apache.axiom.om.OMDataSource
- Overrides:
getReader
in class JSONDataSource
- Returns:
- The XMLStreamReader according to the JSON String.
- Throws:
XMLStreamException
- if there is an error while making the StAX reader.
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.