public abstract class EventWriterDelegate extends java.lang.Object implements XMLEventWriter
Modifier and Type | Field and Description |
---|---|
protected XMLEventWriter |
out
The downstream writer, to which events are delegated.
|
Modifier | Constructor and Description |
---|---|
protected |
EventWriterDelegate(XMLEventWriter out) |
Modifier and Type | Method and Description |
---|---|
void |
add(XMLEvent event) |
void |
add(XMLEventReader reader)
Add events from the given reader, one by one.
|
void |
close() |
void |
flush() |
NamespaceContext |
getNamespaceContext() |
java.lang.String |
getPrefix(java.lang.String uri) |
void |
setDefaultNamespace(java.lang.String uri) |
void |
setNamespaceContext(NamespaceContext context) |
void |
setPrefix(java.lang.String prefix,
java.lang.String uri) |
protected final XMLEventWriter out
protected EventWriterDelegate(XMLEventWriter out)
public void setNamespaceContext(NamespaceContext context) throws XMLStreamException
setNamespaceContext
in interface XMLEventWriter
XMLStreamException
public NamespaceContext getNamespaceContext()
getNamespaceContext
in interface XMLEventWriter
public void setDefaultNamespace(java.lang.String uri) throws XMLStreamException
setDefaultNamespace
in interface XMLEventWriter
XMLStreamException
public void setPrefix(java.lang.String prefix, java.lang.String uri) throws XMLStreamException
setPrefix
in interface XMLEventWriter
XMLStreamException
public java.lang.String getPrefix(java.lang.String uri) throws XMLStreamException
getPrefix
in interface XMLEventWriter
XMLStreamException
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 flush() throws XMLStreamException
flush
in interface XMLEventWriter
XMLStreamException
public void close() throws XMLStreamException
close
in interface XMLEventWriter
XMLStreamException