public abstract class EventWriterDelegate extends 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() |
String |
getPrefix(String uri) |
void |
setDefaultNamespace(String uri) |
void |
setNamespaceContext(NamespaceContext context) |
void |
setPrefix(String prefix,
String uri) |
protected final XMLEventWriter out
protected EventWriterDelegate(XMLEventWriter out)
public void setNamespaceContext(NamespaceContext context) throws XMLStreamException
setNamespaceContext in interface XMLEventWriterXMLStreamExceptionpublic NamespaceContext getNamespaceContext()
getNamespaceContext in interface XMLEventWriterpublic void setDefaultNamespace(String uri) throws XMLStreamException
setDefaultNamespace in interface XMLEventWriterXMLStreamExceptionpublic void setPrefix(String prefix, String uri) throws XMLStreamException
setPrefix in interface XMLEventWriterXMLStreamExceptionpublic String getPrefix(String uri) throws XMLStreamException
getPrefix in interface XMLEventWriterXMLStreamExceptionpublic void add(XMLEvent event) throws XMLStreamException
add in interface XMLEventConsumeradd in interface XMLEventWriterXMLStreamExceptionpublic void add(XMLEventReader reader) throws XMLStreamException
add in interface XMLEventWriterXMLStreamExceptionpublic void flush()
throws XMLStreamException
flush in interface XMLEventWriterXMLStreamExceptionpublic void close()
throws XMLStreamException
close in interface XMLEventWriterXMLStreamExceptionCopyright © 2024. All rights reserved.