Package org.apache.axis2.json
Class AbstractJSONDataSource
- java.lang.Object
-
- org.apache.axiom.om.ds.AbstractOMDataSource
-
- org.apache.axiom.om.ds.AbstractPullOMDataSource
-
- org.apache.axis2.json.AbstractJSONDataSource
-
- All Implemented Interfaces:
OMDataSource
,OMDataSourceExt
- Direct Known Subclasses:
JSONBadgerfishDataSource
,JSONDataSource
public abstract class AbstractJSONDataSource extends AbstractPullOMDataSource
JSONDataSource keeps the JSON String inside and consumes it when needed. This is to be kept in the OMSourcedElement and can be used either to expand the tree or get the JSON String directly without expanding. This uses the "Mapped" JSON convention.
-
-
Constructor Summary
Constructors Constructor Description AbstractJSONDataSource(Reader jsonReader)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
getObject()
XMLStreamReader
getReader()
protected abstract org.codehaus.jettison.AbstractXMLInputFactory
getXMLInputFactory()
boolean
isDestructiveRead()
-
Methods inherited from class org.apache.axiom.om.ds.AbstractPullOMDataSource
isDestructiveWrite, serialize
-
Methods inherited from class org.apache.axiom.om.ds.AbstractOMDataSource
close, copy, getProperty, getXMLBytes, getXMLInputStream, hasProperty, serialize, serialize, setProperty
-
-
-
-
Constructor Detail
-
AbstractJSONDataSource
public AbstractJSONDataSource(Reader jsonReader)
-
-
Method Detail
-
getReader
public final XMLStreamReader getReader() throws XMLStreamException
- Throws:
XMLStreamException
-
getXMLInputFactory
protected abstract org.codehaus.jettison.AbstractXMLInputFactory getXMLInputFactory() throws XMLStreamException
- Throws:
XMLStreamException
-
isDestructiveRead
public boolean isDestructiveRead()
-
getObject
public Object getObject()
- Specified by:
getObject
in interfaceOMDataSourceExt
- Overrides:
getObject
in classAbstractOMDataSource
-
-