org.xwiki.xml.stax
Class SAXEventWriter
java.lang.Object
org.xwiki.xml.stax.SAXEventConsumer
org.xwiki.xml.stax.SAXEventWriter
- All Implemented Interfaces:
- XMLEventConsumer, XMLEventWriter
public class SAXEventWriter
- extends SAXEventConsumer
- implements XMLEventWriter
Receive and convert StAX events to SAX events.
Extends SAXEventConsumer with XMLEventWriter methods.
- Since:
- 5.2M1
- Version:
- $Id: 42e7c5b6c459ecb9d9fe917e4b03d03288d169dc $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAXEventWriter
public SAXEventWriter(ContentHandler handler)
- Parameters:
handler - the content handler
add
public void add(XMLEventReader reader)
throws XMLStreamException
- Specified by:
add in interface XMLEventWriter
- Throws:
XMLStreamException
flush
public void flush()
throws XMLStreamException
- Specified by:
flush in interface XMLEventWriter
- Throws:
XMLStreamException
close
public void close()
throws XMLStreamException
- Specified by:
close in interface XMLEventWriter
- Throws:
XMLStreamException
getPrefix
public String getPrefix(String uri)
throws XMLStreamException
- Specified by:
getPrefix in interface XMLEventWriter
- Throws:
XMLStreamException
setPrefix
public void setPrefix(String prefix,
String uri)
throws XMLStreamException
- Specified by:
setPrefix 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
getNamespaceContext
public NamespaceContext getNamespaceContext()
- Specified by:
getNamespaceContext in interface XMLEventWriter
Copyright © 2004-2013 XWiki. All Rights Reserved.