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

public Class SAXOutput

extends XmlOutputAbstractImpl
Class Inheritance
Known Direct Subclasses
org.glassfish.jaxb.runtime.v2.runtime.output.DOMOutput
Imports
org.glassfish.jaxb.runtime.util.AttributesImpl, org.glassfish.jaxb.runtime.v2.runtime.XMLSerializer, org.xml.sax.ContentHandler, .SAXException, org.xml.sax.helpers.LocatorImpl, javax.xml.stream.XMLStreamException, java.io.IOException

XmlOutput implementation that writes to SAX ContentHandler.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final AttributesImpl
private char[]
private String
private String
private String
protected final ContentHandler
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
private String
getQName(int prefix, String localName)

public void
public void
text(String value, boolean needsSP)

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

Writes XML text with character escaping, if necessary.

public void
text(Pcdata value, boolean needsSP)

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

attsback to summary
private final AttributesImpl atts
bufback to summary
private char[] buf
elementLocalNameback to summary
private String elementLocalName
elementNsUriback to summary
private String elementNsUri
elementQNameback to summary
private String elementQName
outback to summary
protected final ContentHandler out

Constructor Detail

SAXOutputback to summary
public SAXOutput(ContentHandler out)

Method Detail

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

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)

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 SAXException, IOException, 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 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 SAXException

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

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

Annotations
@Override
getQNameback to summary
private String getQName(int prefix, String localName)
startDocumentback to summary
public void startDocument(XMLSerializer serializer, boolean fragment, int[] nsUriIndex2prefixIndex, NamespaceContextImpl nsContext) throws SAXException, IOException, 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 needsSP) 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 needsSP) 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