Top Description Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.runtime.output

public Class XMLEventWriterOutput

extends XmlOutputAbstractImpl
Class Inheritance
Imports
org.glassfish.jaxb.runtime.v2.runtime.XMLSerializer, org.xml.sax.SAXException, javax.xml.stream.XMLEventFactory, .XMLEventWriter, .XMLStreamException, javax.xml.stream.events.Attribute, .Characters, java.io.IOException

XmlOutput that writes to StAX XMLEventWriter.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final XMLEventFactory
private final XMLEventWriter
private final Characters
sp

One whitespace.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutputAbstractImpl:
nsContextnsUriIndex2prefixIndexserializer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
public void
public void
public void
text(String value, boolean needsSeparatingWhitespace)

Implements org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutput.text.

Writes XML text with character escaping, if necessary.

public void
text(Pcdata value, boolean needsSeparatingWhitespace)

Implements org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutput.text.

Writes XML text with character escaping, if necessary.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutputAbstractImpl:
attributebeginStartTagendTag

Field Detail

efback to summary
private final XMLEventFactory ef
outback to summary
private final XMLEventWriter out
spback to summary
private final Characters sp

One whitespace.

Constructor Detail

XMLEventWriterOutputback to summary
public XMLEventWriterOutput(XMLEventWriter out)

Method Detail

attributeback to summary
public void attribute(int prefix, String localName, String value) throws IOException, XMLStreamException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutputAbstractImpl.attribute.

Implements org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutput.attribute.

Annotations
@Override
beginStartTagback to summary
public void beginStartTag(int prefix, String localName) throws IOException, XMLStreamException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutputAbstractImpl.beginStartTag.

Implements org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutput.beginStartTag.

Annotations
@Override
endDocumentback to summary
public void endDocument(boolean fragment) throws IOException, SAXException, XMLStreamException

Overrides org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutputAbstractImpl.endDocument.

Implements org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutput.endDocument.

Doc from org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutputAbstractImpl.endDocument.

Called at the very end.

Annotations
@Override
endStartTagback to summary
public void endStartTag() throws IOException, SAXException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutputAbstractImpl.endStartTag.

Implements org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutput.endStartTag.

Annotations
@Override
endTagback to summary
public void endTag(int prefix, String localName) throws IOException, SAXException, XMLStreamException

Implements abstract org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutputAbstractImpl.endTag.

Implements org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutput.endTag.

Annotations
@Override
startDocumentback to summary
public void startDocument(XMLSerializer serializer, boolean fragment, int[] nsUriIndex2prefixIndex, NamespaceContextImpl nsContext) throws IOException, SAXException, XMLStreamException

Overrides org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutputAbstractImpl.startDocument.

Implements org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutput.startDocument.

Doc from org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutputAbstractImpl.startDocument.

Called at the very beginning.

Annotations
@Override
textback to summary
public void text(String value, boolean needsSeparatingWhitespace) throws IOException, SAXException, XMLStreamException

Implements org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutput.text.

Doc from org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutput.text.

Writes XML text with character escaping, if necessary.

Annotations
@Override
textback to summary
public void text(Pcdata value, boolean needsSeparatingWhitespace) throws IOException, SAXException, XMLStreamException

Implements org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutput.text.

Doc from org.glassfish.jaxb.runtime.v2.runtime.output.XmlOutput.text.

Writes XML text with character escaping, if necessary.

Annotations
@Override