Class XmlWriter
java.lang.Object
com.aquima.interactions.foundation.xml.writer.AbstractXmlWriter
com.aquima.interactions.foundation.xml.writer.XmlWriter
- All Implemented Interfaces:
IXmlWriter
Writer to write xml objects to one or more writers.
- Since:
- 7.4
- Author:
- Jon van Leuven
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
void
setEncoding
(String encoding) This method sets the encoding that is used in the xml document declaration.protected void
Methods inherited from class com.aquima.interactions.foundation.xml.writer.AbstractXmlWriter
writeAttribute, writeAttribute, writeAttribute, writeCDataElement, writeCDataValue, writeComment, writeTagEnd, writeTagStart, writeValue, writeXmlDecleration
-
Constructor Details
-
XmlWriter
This construct an XML writer with a writer.- Parameters:
writer
- The writer to write xml result to.useIndentation
- true to use whitespace indentation for pretty printing.
-
XmlWriter
This construct an XML writer with multiple writers.- Parameters:
writers
- The writers to write xml result to.useIndentation
- true to use whitespace indentation for pretty printing.
-
-
Method Details
-
setEncoding
This method sets the encoding that is used in the xml document declaration.- Parameters:
encoding
- The xml document encoding.
-
write
- Specified by:
write
in classAbstractXmlWriter
- Throws:
IOException
-
getXmlDeclaration
- Specified by:
getXmlDeclaration
in classAbstractXmlWriter
-