Class XmlStreamWriter
java.lang.Object
com.aquima.interactions.foundation.xml.writer.AbstractXmlWriter
com.aquima.interactions.foundation.xml.writer.XmlStreamWriter
- All Implemented Interfaces:
IXmlWriter
Writer to write UTF-8 xml objects to one or more streams.
- Since:
- 7.4
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionXmlStreamWriter
(OutputStream[] streams, boolean useIndentation) This construct an XML writer with multiple streams.XmlStreamWriter
(OutputStream stream, boolean useIndentation) This construct an XML writer with a stream. -
Method Summary
Methods inherited from class com.aquima.interactions.foundation.xml.writer.AbstractXmlWriter
writeAttribute, writeAttribute, writeAttribute, writeCDataElement, writeCDataValue, writeComment, writeTagEnd, writeTagStart, writeValue, writeXmlDecleration
-
Constructor Details
-
XmlStreamWriter
This construct an XML writer with a stream.- Parameters:
stream
- The stream to write xml result to.useIndentation
- true to use whitespace indentation for pretty printing.
-
XmlStreamWriter
This construct an XML writer with multiple streams.- Parameters:
streams
- The streams to write xml result to.useIndentation
- true to use whitespace indentation for pretty printing.
-
-
Method Details
-
write
- Specified by:
write
in classAbstractXmlWriter
- Throws:
IOException
-
getXmlDeclaration
- Specified by:
getXmlDeclaration
in classAbstractXmlWriter
-