Package org.wildfly.testing.tools.xml
Interface CloseableXMLStreamWriter
- All Superinterfaces:
AutoCloseable,XMLStreamWriter
A simple
XMLStreamWriter which also implements AutoCloseable.- Author:
- James R. Perkins
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic CloseableXMLStreamWriterof(OutputStream out) Creates anXMLStreamWriterwhich writes to the output stream.static CloseableXMLStreamWriterCreates anXMLStreamWriterwhich writes to the output stream.Methods inherited from interface java.lang.AutoCloseable
closeMethods inherited from interface javax.xml.stream.XMLStreamWriter
close, flush, getNamespaceContext, getPrefix, getProperty, setDefaultNamespace, setNamespaceContext, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement, writeStartElement
-
Method Details
-
of
Creates anXMLStreamWriterwhich writes to the output stream.- Parameters:
out- the output stream to write to- Returns:
- a closable XML stream writer
- Throws:
XMLStreamException- if an error occurs creating the writer
-
of
Creates anXMLStreamWriterwhich writes to the output stream.- Parameters:
writer- the writer to write to- Returns:
- a closable XML stream writer
- Throws:
XMLStreamException- if an error occurs creating the writer
-