public class Stax2JacksonWriter extends DefaultXmlStreamWriter implements XMLStreamWriter
XMLStreamWriter
for JSON streams in natural notation.Constructor and Description |
---|
Stax2JacksonWriter(org.codehaus.jackson.JsonGenerator generator,
Class<?> expectedType,
JAXBContext jaxbContext) |
Stax2JacksonWriter(org.codehaus.jackson.JsonGenerator generator,
JSONConfiguration config,
Class<?> expectedType,
JAXBContext jaxbContext) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
writeAttribute(String localName,
String value) |
void |
writeAttribute(String namespaceURI,
String localName,
String value) |
void |
writeAttribute(String prefix,
String namespaceURI,
String localName,
String value) |
void |
writeCharacters(char[] text,
int start,
int length) |
void |
writeCharacters(String text) |
void |
writeEmptyElement(String localName) |
void |
writeEmptyElement(String namespaceURI,
String localName) |
void |
writeEmptyElement(String prefix,
String localName,
String namespaceURI) |
void |
writeEndDocument() |
void |
writeEndElement() |
void |
writeStartDocument() |
void |
writeStartDocument(String version) |
void |
writeStartDocument(String encoding,
String version) |
void |
writeStartElement(String localName) |
void |
writeStartElement(String namespaceURI,
String localName) |
void |
writeStartElement(String prefix,
String localName,
String namespaceURI) |
getNamespaceContext, getPrefix, getProperty, setDefaultNamespace, setNamespaceContext, setPrefix, writeCData, writeComment, writeDefaultNamespace, writeDTD, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNamespaceContext, getPrefix, getProperty, setDefaultNamespace, setNamespaceContext, setPrefix, writeCData, writeComment, writeDefaultNamespace, writeDTD, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction
public Stax2JacksonWriter(org.codehaus.jackson.JsonGenerator generator, Class<?> expectedType, JAXBContext jaxbContext)
public Stax2JacksonWriter(org.codehaus.jackson.JsonGenerator generator, JSONConfiguration config, Class<?> expectedType, JAXBContext jaxbContext)
public void writeStartElement(String localName) throws XMLStreamException
writeStartElement
in interface XMLStreamWriter
XMLStreamException
public void writeStartElement(String namespaceURI, String localName) throws XMLStreamException
writeStartElement
in interface XMLStreamWriter
XMLStreamException
public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
writeStartElement
in interface XMLStreamWriter
XMLStreamException
public void writeEmptyElement(String localName) throws XMLStreamException
writeEmptyElement
in interface XMLStreamWriter
XMLStreamException
public void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException
writeEmptyElement
in interface XMLStreamWriter
XMLStreamException
public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
writeEmptyElement
in interface XMLStreamWriter
XMLStreamException
public void writeEndElement() throws XMLStreamException
writeEndElement
in interface XMLStreamWriter
XMLStreamException
public void writeEndDocument() throws XMLStreamException
writeEndDocument
in interface XMLStreamWriter
XMLStreamException
public void close() throws XMLStreamException
close
in interface XMLStreamWriter
XMLStreamException
public void flush() throws XMLStreamException
flush
in interface XMLStreamWriter
XMLStreamException
public void writeAttribute(String localName, String value) throws XMLStreamException
writeAttribute
in interface XMLStreamWriter
XMLStreamException
public void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException
writeAttribute
in interface XMLStreamWriter
XMLStreamException
public void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException
writeAttribute
in interface XMLStreamWriter
XMLStreamException
public void writeStartDocument() throws XMLStreamException
writeStartDocument
in interface XMLStreamWriter
writeStartDocument
in class DefaultXmlStreamWriter
XMLStreamException
public void writeStartDocument(String version) throws XMLStreamException
writeStartDocument
in interface XMLStreamWriter
writeStartDocument
in class DefaultXmlStreamWriter
XMLStreamException
public void writeStartDocument(String encoding, String version) throws XMLStreamException
writeStartDocument
in interface XMLStreamWriter
writeStartDocument
in class DefaultXmlStreamWriter
XMLStreamException
public void writeCharacters(String text) throws XMLStreamException
writeCharacters
in interface XMLStreamWriter
XMLStreamException
public void writeCharacters(char[] text, int start, int length) throws XMLStreamException
writeCharacters
in interface XMLStreamWriter
XMLStreamException
Copyright © 2013 Oracle Corporation. All rights reserved.