Class EventWriterDelegate
- java.lang.Object
-
- org.apache.synapse.commons.staxon.core.util.EventWriterDelegate
-
- All Implemented Interfaces:
XMLEventConsumer
,XMLEventWriter
- Direct Known Subclasses:
PrettyXMLEventWriter
,XMLMultipleEventWriter
public class EventWriterDelegate extends Object implements XMLEventWriter
Filter anXMLEventWriter
. Counterpart toEventReaderDelegate
.
-
-
Constructor Summary
Constructors Constructor Description EventWriterDelegate()
EventWriterDelegate(XMLEventWriter parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(XMLEvent event)
void
add(XMLEventReader reader)
void
close()
void
flush()
NamespaceContext
getNamespaceContext()
XMLEventWriter
getParent()
String
getPrefix(String uri)
void
setDefaultNamespace(String uri)
void
setNamespaceContext(NamespaceContext context)
void
setParent(XMLEventWriter parent)
void
setPrefix(String prefix, String uri)
-
-
-
Constructor Detail
-
EventWriterDelegate
public EventWriterDelegate()
-
EventWriterDelegate
public EventWriterDelegate(XMLEventWriter parent)
-
-
Method Detail
-
getParent
public XMLEventWriter getParent()
-
setParent
public void setParent(XMLEventWriter parent)
-
flush
public void flush() throws XMLStreamException
- Specified by:
flush
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
close
public void close() throws XMLStreamException
- Specified by:
close
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
add
public void add(XMLEvent event) throws XMLStreamException
- Specified by:
add
in interfaceXMLEventConsumer
- Specified by:
add
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
add
public void add(XMLEventReader reader) throws XMLStreamException
- Specified by:
add
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
getPrefix
public String getPrefix(String uri) throws XMLStreamException
- Specified by:
getPrefix
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
setPrefix
public void setPrefix(String prefix, String uri) throws XMLStreamException
- Specified by:
setPrefix
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
setDefaultNamespace
public void setDefaultNamespace(String uri) throws XMLStreamException
- Specified by:
setDefaultNamespace
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
setNamespaceContext
public void setNamespaceContext(NamespaceContext context) throws XMLStreamException
- Specified by:
setNamespaceContext
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
getNamespaceContext
public NamespaceContext getNamespaceContext()
- Specified by:
getNamespaceContext
in interfaceXMLEventWriter
-
-