|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.json.AbstractJSONDataSource
public abstract class AbstractJSONDataSource
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.
Field Summary | |
---|---|
protected String |
localName
|
Constructor Summary | |
---|---|
AbstractJSONDataSource(Reader jsonReader,
String localName)
|
Method Summary | |
---|---|
String |
getCompleteJOSNString()
|
protected String |
getJSONString()
|
abstract XMLStreamReader |
getReader()
Gives the StAX reader using the "Mapped" formatted input JSON String. |
void |
serialize(OutputStream outputStream,
org.apache.axiom.om.OMOutputFormat omOutputFormat)
Writes JSON into the output stream. |
void |
serialize(Writer writer,
org.apache.axiom.om.OMOutputFormat omOutputFormat)
Writes JSON through the writer. |
void |
serialize(XMLStreamWriter xmlStreamWriter)
Writes XML through the XMLStreamWriter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String localName
Constructor Detail |
---|
public AbstractJSONDataSource(Reader jsonReader, String localName)
Method Detail |
---|
public void serialize(OutputStream outputStream, org.apache.axiom.om.OMOutputFormat omOutputFormat) throws XMLStreamException
serialize
in interface org.apache.axiom.om.OMDataSource
outputStream
- the stream to be written intoomOutputFormat
- format of the message, this is ignored.
XMLStreamException
- if there is an error while writing the message in to the output stream.public void serialize(Writer writer, org.apache.axiom.om.OMOutputFormat omOutputFormat) throws XMLStreamException
serialize
in interface org.apache.axiom.om.OMDataSource
writer
- Writer to be written intoomOutputFormat
- format of the message, this is ignored.
XMLStreamException
- if there is an error while writing the message through the writer.public void serialize(XMLStreamWriter xmlStreamWriter) throws XMLStreamException
serialize
in interface org.apache.axiom.om.OMDataSource
xmlStreamWriter
- StAX writer to be written into
XMLStreamException
- if there is an error while writing the message through the StAX writer.public abstract XMLStreamReader getReader() throws XMLStreamException
getReader
in interface org.apache.axiom.om.OMDataSource
XMLStreamException
- if there is an error while making the StAX reader.protected String getJSONString()
public String getCompleteJOSNString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |