com.caucho.xml.stream
Class XMLEventWriterImpl
java.lang.Object
com.caucho.xml.stream.XMLEventWriterImpl
- All Implemented Interfaces:
- XMLEventConsumer, XMLEventWriter
public class XMLEventWriterImpl
- extends java.lang.Object
- implements XMLEventWriter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLEventWriterImpl
public XMLEventWriterImpl(XMLStreamWriter out)
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