|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLEventWriter
Interface for writing XML documents from a series of events.
Method Summary | |
---|---|
void |
add(XMLEvent event)
Adds the specified event to this writer. |
void |
add(XMLEventReader reader)
Adds the specified XML stream to this writer. |
void |
close()
Frees any resources used by this writer. |
void |
flush()
Ensures that any cached events are written to the underlying output sink. |
NamespaceContext |
getNamespaceContext()
Returns the namespace context. |
String |
getPrefix(String uri)
Returns the namespace prefix the specified URI is currently associated with. |
void |
setDefaultNamespace(String uri)
Sets the current default namespace URI. |
void |
setNamespaceContext(NamespaceContext context)
Sets the namespace context for managing namespace prefixes and URIs. |
void |
setPrefix(String prefix,
String uri)
Associates the given namespace prefix and URI. |
Method Detail |
---|
void flush() throws XMLStreamException
XMLStreamException
void close() throws XMLStreamException
XMLStreamException
void add(XMLEvent event) throws XMLStreamException
add
in interface XMLEventConsumer
XMLStreamException
void add(XMLEventReader reader) throws XMLStreamException
next
on the given argument
while hasNext
returns true.
XMLStreamException
String getPrefix(String uri) throws XMLStreamException
XMLStreamException
void setPrefix(String prefix, String uri) throws XMLStreamException
XMLStreamException
void setDefaultNamespace(String uri) throws XMLStreamException
XMLStreamException
void setNamespaceContext(NamespaceContext context) throws XMLStreamException
XMLStreamException
NamespaceContext getNamespaceContext()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |