public class StaxWriter extends AbstractXmlWriter
| Constructor and Description |
|---|
StaxWriter(QNameMap qnameMap,
javax.xml.stream.XMLStreamWriter out) |
StaxWriter(QNameMap qnameMap,
javax.xml.stream.XMLStreamWriter out,
boolean writeEnclosingDocument,
boolean namespaceRepairingMode)
Allows a StaxWriter to be created for partial XML output
|
StaxWriter(QNameMap qnameMap,
javax.xml.stream.XMLStreamWriter out,
boolean writeEnclosingDocument,
boolean namespaceRepairingMode,
XmlFriendlyReplacer replacer)
Allows a StaxWriter to be created for partial XML output
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String name,
String value) |
void |
close()
Call this method when you're finished with me
|
void |
endNode() |
void |
flush()
Flush the writer, if necessary.
|
boolean |
isNamespaceRepairingMode()
Is StAX namespace repairing mode on or off?
|
void |
setValue(String text)
Write the value (text content) of the current node.
|
void |
startNode(String name) |
escapeXmlName, startNode, underlyingWriterpublic StaxWriter(QNameMap qnameMap, javax.xml.stream.XMLStreamWriter out) throws javax.xml.stream.XMLStreamException
public StaxWriter(QNameMap qnameMap, javax.xml.stream.XMLStreamWriter out, boolean writeEnclosingDocument, boolean namespaceRepairingMode) throws javax.xml.stream.XMLStreamException
qnameMap - is the mapper of Java class names to QNamesout - the stream to output towriteEnclosingDocument - a flag to indicate whether or not the start/end document events should be writtenjavax.xml.stream.XMLStreamException - if the events could not be written to the outputpublic StaxWriter(QNameMap qnameMap, javax.xml.stream.XMLStreamWriter out, boolean writeEnclosingDocument, boolean namespaceRepairingMode, XmlFriendlyReplacer replacer) throws javax.xml.stream.XMLStreamException
qnameMap - is the mapper of Java class names to QNamesout - the stream to output towriteEnclosingDocument - a flag to indicate whether or not the start/end document events should be writtenreplacer - the xml-friendly replacer to escape Java namesjavax.xml.stream.XMLStreamException - if the events could not be written to the outputpublic void flush()
HierarchicalStreamWriterpublic void close()
public void endNode()
public void setValue(String text)
HierarchicalStreamWriterpublic void startNode(String name)
public boolean isNamespaceRepairingMode()
Copyright © 2014 Internet2. All rights reserved.