Package org.wildfly.testing.tools.xml
Interface CloseableXMLStreamWriter
-
- All Superinterfaces:
AutoCloseable,XMLStreamWriter
public interface CloseableXMLStreamWriter extends AutoCloseable, XMLStreamWriter
A simpleXMLStreamWriterwhich also implementsAutoCloseable.- Author:
- James R. Perkins
-
-
Method Summary
Static Methods Modifier and Type Method Description static CloseableXMLStreamWriterof(OutputStream out)Creates anXMLStreamWriterwhich writes to the output stream.static CloseableXMLStreamWriterof(Writer writer)Creates anXMLStreamWriterwhich writes to the output stream.-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods 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 Detail
-
of
static CloseableXMLStreamWriter of(OutputStream out) throws XMLStreamException
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
static CloseableXMLStreamWriter of(Writer writer) throws XMLStreamException
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
-
-