public interface XMLEventWriter extends javax.xml.stream.util.XMLEventConsumer
| Modifier and Type | Method and Description |
|---|---|
void |
add(javax.xml.stream.events.XMLEvent event)
Adds the specified event to this writer.
|
void |
add(XMLEventReader reader)
Adds the specified XML stream to this writer.
|
void |
close()
Frees any resources used by this writer.
|
void |
flush()
Ensures that any cached events are written to the underlying output
sink.
|
javax.xml.namespace.NamespaceContext |
getNamespaceContext()
Returns the namespace context.
|
java.lang.String |
getPrefix(java.lang.String uri)
Returns the namespace prefix the specified URI is currently associated
with.
|
void |
setDefaultNamespace(java.lang.String uri)
Sets the current default namespace URI.
|
void |
setNamespaceContext(javax.xml.namespace.NamespaceContext context)
Sets the namespace context for managing namespace prefixes and URIs.
|
void |
setPrefix(java.lang.String prefix,
java.lang.String uri)
Associates the given namespace prefix and URI.
|
void flush() throws XMLStreamException
XMLStreamExceptionvoid close() throws XMLStreamException
XMLStreamExceptionvoid add(javax.xml.stream.events.XMLEvent event) throws XMLStreamException
add in interface javax.xml.stream.util.XMLEventConsumerXMLStreamExceptionvoid add(XMLEventReader reader) throws XMLStreamException
next on the given argument
while hasNext returns true.XMLStreamExceptionjava.lang.String getPrefix(java.lang.String uri) throws XMLStreamException
XMLStreamExceptionvoid setPrefix(java.lang.String prefix, java.lang.String uri) throws XMLStreamException
XMLStreamExceptionvoid setDefaultNamespace(java.lang.String uri) throws XMLStreamException
XMLStreamExceptionvoid setNamespaceContext(javax.xml.namespace.NamespaceContext context) throws XMLStreamException
XMLStreamExceptionjavax.xml.namespace.NamespaceContext getNamespaceContext()