public class IndentingXMLEventWriter
extends java.lang.Object
implements javax.xml.stream.XMLEventWriter
Constructor and Description |
---|
IndentingXMLEventWriter(javax.xml.stream.XMLEventWriter out) |
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) |
void |
setDefaultNamespace(java.lang.String uri) |
void |
setIndentSize(int indentSize) |
void |
setNamespaceContext(javax.xml.namespace.NamespaceContext context) |
void |
setPrefix(java.lang.String prefix,
java.lang.String uri) |
public IndentingXMLEventWriter(javax.xml.stream.XMLEventWriter out)
public javax.xml.namespace.NamespaceContext getNamespaceContext()
getNamespaceContext
in interface javax.xml.stream.XMLEventWriter
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 setDefaultNamespace(java.lang.String uri) throws javax.xml.stream.XMLStreamException
setDefaultNamespace
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
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 add(javax.xml.stream.XMLEventReader reader) throws javax.xml.stream.XMLStreamException
add
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 void close() throws javax.xml.stream.XMLStreamException
close
in interface javax.xml.stream.XMLEventWriter
javax.xml.stream.XMLStreamException
public void setIndentSize(int indentSize)
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