net.rootdev.javardfa.literal
Class CanonicalXMLEventWriter
java.lang.Object
net.rootdev.javardfa.literal.CanonicalXMLEventWriter
- All Implemented Interfaces:
- XMLEventConsumer, XMLEventWriter
public class CanonicalXMLEventWriter
- extends Object
- implements XMLEventWriter
All this class does currently is ensure the order of attributes, but
(By using a stream writer) it is more controllable than the event writer.
- Author:
- pldms
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CanonicalXMLEventWriter
public CanonicalXMLEventWriter(XMLStreamWriter swriter,
Attribute contextLang)
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
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
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 © 2009-2012. All Rights Reserved.