org.apache.cxf.staxutils
Class OverlayW3CDOMStreamWriter
java.lang.Object
org.apache.cxf.staxutils.W3CDOMStreamWriter
org.apache.cxf.staxutils.OverlayW3CDOMStreamWriter
- All Implemented Interfaces:
- XMLStreamWriter
public class OverlayW3CDOMStreamWriter
- extends W3CDOMStreamWriter
Special StreamWriter that will "overlay" any write events onto the DOM.
If the startElement ends up writing an element that already exists at that
location, it will just walk into it instead of creating a new element
Methods inherited from class org.apache.cxf.staxutils.W3CDOMStreamWriter |
close, createAndAddElement, flush, getCurrentFragment, getCurrentNode, getDocument, getNamespaceContext, getPrefix, getProperty, isNsRepairing, newChild, setChild, setDefaultNamespace, setNamespaceContext, setNsRepairing, setPrefix, setProperties, toString, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument |
OverlayW3CDOMStreamWriter
public OverlayW3CDOMStreamWriter(Document document)
OverlayW3CDOMStreamWriter
public OverlayW3CDOMStreamWriter(Element e)
writeEndElement
public void writeEndElement()
throws XMLStreamException
- Specified by:
writeEndElement
in interface XMLStreamWriter
- Overrides:
writeEndElement
in class W3CDOMStreamWriter
- Throws:
XMLStreamException
writeStartElement
public void writeStartElement(String local)
throws XMLStreamException
- Specified by:
writeStartElement
in interface XMLStreamWriter
- Overrides:
writeStartElement
in class W3CDOMStreamWriter
- Throws:
XMLStreamException
writeStartElement
public void writeStartElement(String namespace,
String local)
throws XMLStreamException
- Specified by:
writeStartElement
in interface XMLStreamWriter
- Overrides:
writeStartElement
in class W3CDOMStreamWriter
- Throws:
XMLStreamException
writeStartElement
public void writeStartElement(String prefix,
String local,
String namespace)
throws XMLStreamException
- Specified by:
writeStartElement
in interface XMLStreamWriter
- Overrides:
writeStartElement
in class W3CDOMStreamWriter
- Throws:
XMLStreamException
Apache CXF