public class XMLEventWriterImpl extends java.lang.Object implements XMLEventWriter
Constructor and Description |
---|
XMLEventWriterImpl(XMLStreamWriter out) |
Modifier and Type | Method and Description |
---|---|
void |
add(XMLEvent event) |
void |
add(XMLEventReader reader) |
void |
close() |
void |
flush() |
javax.xml.namespace.NamespaceContext |
getNamespaceContext() |
java.lang.String |
getPrefix(java.lang.String uri) |
XMLStreamWriter |
getXMLStreamWriter() |
void |
setDefaultNamespace(java.lang.String uri) |
void |
setNamespaceContext(javax.xml.namespace.NamespaceContext context) |
void |
setPrefix(java.lang.String prefix,
java.lang.String uri) |
public XMLEventWriterImpl(XMLStreamWriter out)
public XMLStreamWriter getXMLStreamWriter()
public void add(XMLEvent event) throws XMLStreamException
add
in interface XMLEventConsumer
add
in interface XMLEventWriter
XMLStreamException
public void add(XMLEventReader reader) throws XMLStreamException
add
in interface XMLEventWriter
XMLStreamException
public void close() throws XMLStreamException
close
in interface XMLEventWriter
XMLStreamException
public void flush() throws XMLStreamException
flush
in interface XMLEventWriter
XMLStreamException
public javax.xml.namespace.NamespaceContext getNamespaceContext()
getNamespaceContext
in interface XMLEventWriter
public java.lang.String getPrefix(java.lang.String uri) throws XMLStreamException
getPrefix
in interface XMLEventWriter
XMLStreamException
public void setDefaultNamespace(java.lang.String uri) throws XMLStreamException
setDefaultNamespace
in interface XMLEventWriter
XMLStreamException
public void setNamespaceContext(javax.xml.namespace.NamespaceContext context) throws XMLStreamException
setNamespaceContext
in interface XMLEventWriter
XMLStreamException
public void setPrefix(java.lang.String prefix, java.lang.String uri) throws XMLStreamException
setPrefix
in interface XMLEventWriter
XMLStreamException