public abstract class AbstractJSONDataSource extends Object implements org.apache.axiom.om.OMDataSource
Constructor and Description |
---|
AbstractJSONDataSource(Reader jsonReader,
String localName) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected String localName
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 intoXMLStreamException
- 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()
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.