com.caucho.xml.stream
Class XMLEventWriterImpl

java.lang.Object
  extended by com.caucho.xml.stream.XMLEventWriterImpl
All Implemented Interfaces:
XMLEventConsumer, XMLEventWriter

public class XMLEventWriterImpl
extends java.lang.Object
implements XMLEventWriter


Constructor Summary
XMLEventWriterImpl(XMLStreamWriter out)
           
 
Method Summary
 void add(XMLEvent event)
           
 void add(XMLEventReader reader)
           
 void close()
           
 void flush()
           
 javax.xml.namespace.NamespaceContext getNamespaceContext()
           
 java.lang.String getPrefix(java.lang.String uri)
           
 XMLStreamWriter getXMLStreamWriter()
           
 void setDefaultNamespace(java.lang.String uri)
           
 void setNamespaceContext(javax.xml.namespace.NamespaceContext context)
           
 void setPrefix(java.lang.String prefix, java.lang.String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLEventWriterImpl

public XMLEventWriterImpl(XMLStreamWriter out)
Method Detail

getXMLStreamWriter

public XMLStreamWriter getXMLStreamWriter()

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 javax.xml.namespace.NamespaceContext getNamespaceContext()
Specified by:
getNamespaceContext in interface XMLEventWriter

getPrefix

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

setDefaultNamespace

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

setNamespaceContext

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

setPrefix

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