public abstract class AbstractJSONDataSource
extends java.lang.Object
implements org.apache.axiom.om.OMDataSource
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
localName |
| Constructor and Description |
|---|
AbstractJSONDataSource(java.io.Reader jsonReader,
java.lang.String localName) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCompleteJOSNString() |
protected java.lang.String |
getJSONString() |
abstract javax.xml.stream.XMLStreamReader |
getReader()
Gives the StAX reader using the "Mapped" formatted input JSON String.
|
void |
serialize(java.io.OutputStream outputStream,
org.apache.axiom.om.OMOutputFormat omOutputFormat)
Writes JSON into the output stream.
|
void |
serialize(java.io.Writer writer,
org.apache.axiom.om.OMOutputFormat omOutputFormat)
Writes JSON through the writer.
|
void |
serialize(javax.xml.stream.XMLStreamWriter xmlStreamWriter)
Writes XML through the XMLStreamWriter.
|
public AbstractJSONDataSource(java.io.Reader jsonReader,
java.lang.String localName)
public void serialize(java.io.OutputStream outputStream,
org.apache.axiom.om.OMOutputFormat omOutputFormat)
throws javax.xml.stream.XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourceoutputStream - the stream to be written intoomOutputFormat - format of the message, this is ignored.javax.xml.stream.XMLStreamException - if there is an error while writing the message in to the output stream.public void serialize(java.io.Writer writer,
org.apache.axiom.om.OMOutputFormat omOutputFormat)
throws javax.xml.stream.XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourcewriter - Writer to be written intoomOutputFormat - format of the message, this is ignored.javax.xml.stream.XMLStreamException - if there is an error while writing the message through the writer.public void serialize(javax.xml.stream.XMLStreamWriter xmlStreamWriter)
throws javax.xml.stream.XMLStreamException
serialize in interface org.apache.axiom.om.OMDataSourcexmlStreamWriter - StAX writer to be written intojavax.xml.stream.XMLStreamException - if there is an error while writing the message through the StAX writer.public abstract javax.xml.stream.XMLStreamReader getReader()
throws javax.xml.stream.XMLStreamException
getReader in interface org.apache.axiom.om.OMDataSourcejavax.xml.stream.XMLStreamException - if there is an error while making the StAX reader.protected java.lang.String getJSONString()
public java.lang.String getCompleteJOSNString()
Copyright © 2004-2024 The Apache Software Foundation. All Rights Reserved.