java.lang.Object
org.xbib.content.xml.json.JsonXmlStreamer
Write JSON stream to XML stream. This is realized by transforming
Jackson stream events to StaX events. You need a root element to wrap
the JSON stream into.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontext(org.xbib.content.resource.NamespaceContext context) openWriter(OutputStream out) openWriter(OutputStream out, String encoding) openWriter(Writer writer) voidtoXML(InputStream in, OutputStream out) voidtoXML(InputStream in, Writer writer) voidtoXML(InputStream in, XMLEventConsumer consumer) voidvoidtoXML(Reader in, XMLEventConsumer consumer) voidwriteStylesheetInstruction(XMLEventConsumer consumer, String stylesheet) voidwriteXMLProcessingInstruction(XMLEventConsumer consumer, String encoding)
-
Constructor Details
-
JsonXmlStreamer
public JsonXmlStreamer()
-
-
Method Details
-
root
-
context
-
openWriter
- Throws:
XMLStreamException
-
openWriter
- Throws:
XMLStreamException
-
openWriter
- Throws:
XMLStreamException
-
writeXMLProcessingInstruction
public void writeXMLProcessingInstruction(XMLEventConsumer consumer, String encoding) throws XMLStreamException - Throws:
XMLStreamException
-
writeStylesheetInstruction
public void writeStylesheetInstruction(XMLEventConsumer consumer, String stylesheet) throws XMLStreamException - Throws:
XMLStreamException
-
toXML
- Throws:
XMLStreamExceptionIOException
-
toXML
- Throws:
XMLStreamExceptionIOException
-
toXML
- Throws:
XMLStreamExceptionIOException
-
toXML
- Throws:
XMLStreamExceptionIOException
-
toXML
- Throws:
XMLStreamExceptionIOException
-