be.re.xml.stax
Class EventWriterDelegate

java.lang.Object
  extended by be.re.xml.stax.EventWriterDelegate
All Implemented Interfaces:
XMLEventConsumer, XMLEventWriter

public class EventWriterDelegate
extends Object
implements XMLEventWriter

Writes nothing.

Author:
Werner Donné

Constructor Summary
EventWriterDelegate()
           
EventWriterDelegate(XMLEventWriter writer)
           
 
Method Summary
 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 writer)
           
 void setPrefix(String prefix, String uri)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventWriterDelegate

public EventWriterDelegate()

EventWriterDelegate

public EventWriterDelegate(XMLEventWriter writer)
Method Detail

add

public void add(XMLEvent event)
         throws XMLStreamException
Specified by:
add in interface XMLEventConsumer
Specified by:
add in interface XMLEventWriter
Throws:
XMLStreamException

add

public void add(XMLEventReader reader)
         throws XMLStreamException
Specified by:
add in interface XMLEventWriter
Throws:
XMLStreamException

close

public void close()
           throws XMLStreamException
Specified by:
close in interface XMLEventWriter
Throws:
XMLStreamException

flush

public void flush()
           throws XMLStreamException
Specified by:
flush in interface XMLEventWriter
Throws:
XMLStreamException

getNamespaceContext

public NamespaceContext getNamespaceContext()
Specified by:
getNamespaceContext in interface XMLEventWriter

getParent

public XMLEventWriter getParent()

getPrefix

public String getPrefix(String uri)
                 throws XMLStreamException
Specified by:
getPrefix in interface XMLEventWriter
Throws:
XMLStreamException

setDefaultNamespace

public void setDefaultNamespace(String uri)
                         throws XMLStreamException
Specified by:
setDefaultNamespace in interface XMLEventWriter
Throws:
XMLStreamException

setNamespaceContext

public void setNamespaceContext(NamespaceContext context)
                         throws XMLStreamException
Specified by:
setNamespaceContext in interface XMLEventWriter
Throws:
XMLStreamException

setParent

public void setParent(XMLEventWriter writer)

setPrefix

public void setPrefix(String prefix,
                      String uri)
               throws XMLStreamException
Specified by:
setPrefix in interface XMLEventWriter
Throws:
XMLStreamException