public class UnclosedElementCollectingEventWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected javax.xml.stream.XMLEventWriter |
wrappedEventWriter |
Constructor and Description |
---|
UnclosedElementCollectingEventWriter(javax.xml.stream.XMLEventWriter wrappedEventWriter) |
Modifier and Type | Method and Description |
---|---|
void |
add(javax.xml.stream.events.XMLEvent event) |
void |
add(javax.xml.stream.XMLEventReader reader) |
void |
close() |
void |
flush() |
javax.xml.namespace.NamespaceContext |
getNamespaceContext() |
java.lang.String |
getPrefix(java.lang.String uri) |
java.util.List<javax.xml.namespace.QName> |
getUnclosedElements() |
void |
setDefaultNamespace(java.lang.String uri) |
void |
setNamespaceContext(javax.xml.namespace.NamespaceContext context) |
void |
setPrefix(java.lang.String prefix,
java.lang.String uri) |
public UnclosedElementCollectingEventWriter(javax.xml.stream.XMLEventWriter wrappedEventWriter)
public void add(javax.xml.stream.events.XMLEvent event) throws javax.xml.stream.XMLStreamException
add
in interface javax.xml.stream.util.XMLEventConsumer
add
in interface javax.xml.stream.XMLEventWriter
javax.xml.stream.XMLStreamException
public java.util.List<javax.xml.namespace.QName> getUnclosedElements()
public void add(javax.xml.stream.XMLEventReader reader) throws javax.xml.stream.XMLStreamException
add
in interface javax.xml.stream.XMLEventWriter
javax.xml.stream.XMLStreamException
public void close() throws javax.xml.stream.XMLStreamException
close
in interface javax.xml.stream.XMLEventWriter
javax.xml.stream.XMLStreamException
public void flush() throws javax.xml.stream.XMLStreamException
flush
in interface javax.xml.stream.XMLEventWriter
javax.xml.stream.XMLStreamException
public javax.xml.namespace.NamespaceContext getNamespaceContext()
getNamespaceContext
in interface javax.xml.stream.XMLEventWriter
public java.lang.String getPrefix(java.lang.String uri) throws javax.xml.stream.XMLStreamException
getPrefix
in interface javax.xml.stream.XMLEventWriter
javax.xml.stream.XMLStreamException
public void setDefaultNamespace(java.lang.String uri) throws javax.xml.stream.XMLStreamException
setDefaultNamespace
in interface javax.xml.stream.XMLEventWriter
javax.xml.stream.XMLStreamException
public void setNamespaceContext(javax.xml.namespace.NamespaceContext context) throws javax.xml.stream.XMLStreamException
setNamespaceContext
in interface javax.xml.stream.XMLEventWriter
javax.xml.stream.XMLStreamException
public void setPrefix(java.lang.String prefix, java.lang.String uri) throws javax.xml.stream.XMLStreamException
setPrefix
in interface javax.xml.stream.XMLEventWriter
javax.xml.stream.XMLStreamException