public class EventWriterDelegate extends Object implements XMLEventWriter
EventWriterDelegate| Constructor and Description |
|---|
EventWriterDelegate()
Construct an empty filter with no parent.
|
EventWriterDelegate(XMLEventWriter writer)
Construct a filter with the specified parent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(XMLEvent event) |
void |
add(XMLEventReader reader) |
void |
close() |
void |
flush() |
NamespaceContext |
getNamespaceContext() |
XMLEventWriter |
getParent()
Get the parent of this instance.
|
String |
getPrefix(String uri) |
void |
setDefaultNamespace(String uri) |
void |
setNamespaceContext(NamespaceContext context) |
void |
setParent(XMLEventWriter writer)
Set the parent of this instance.
|
void |
setPrefix(String prefix,
String uri) |
public EventWriterDelegate()
public EventWriterDelegate(XMLEventWriter writer)
writer - the parentpublic void add(XMLEvent event) throws XMLStreamException
add in interface XMLEventConsumeradd in interface XMLEventWriterXMLStreamExceptionpublic void add(XMLEventReader reader) throws XMLStreamException
add in interface XMLEventWriterXMLStreamExceptionpublic void close()
throws XMLStreamException
close in interface XMLEventWriterXMLStreamExceptionpublic void flush()
throws XMLStreamException
flush in interface XMLEventWriterXMLStreamExceptionpublic NamespaceContext getNamespaceContext()
getNamespaceContext in interface XMLEventWriterpublic XMLEventWriter getParent()
public String getPrefix(String uri) throws XMLStreamException
getPrefix in interface XMLEventWriterXMLStreamExceptionpublic void setDefaultNamespace(String uri) throws XMLStreamException
setDefaultNamespace in interface XMLEventWriterXMLStreamExceptionpublic void setNamespaceContext(NamespaceContext context) throws XMLStreamException
setNamespaceContext in interface XMLEventWriterXMLStreamExceptionpublic void setParent(XMLEventWriter writer)
writer - the new parentpublic void setPrefix(String prefix, String uri) throws XMLStreamException
setPrefix in interface XMLEventWriterXMLStreamExceptionCopyright © 2016 Audiveris Ltd. All rights reserved.