public class DomXmlDataFormatWriter extends java.lang.Object implements DataFormatWriter
| Modifier and Type | Field and Description |
|---|---|
protected DomXmlDataFormat |
domXmlDataFormat |
protected javax.xml.transform.Templates |
formattingTemplates |
protected static DomXmlLogger |
LOG |
protected static java.lang.String |
STRIP_SPACE_XSL |
| Constructor and Description |
|---|
DomXmlDataFormatWriter(DomXmlDataFormat domXmlDataFormat) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.xml.transform.Transformer |
getFormattingTransformer()
Returns a configured transformer to write XML and apply indentation (pretty-print) to the xml.
|
protected javax.xml.transform.Transformer |
getTransformer()
Returns a configured transformer to write XML as is.
|
protected javax.xml.transform.Templates |
reloadFormattingTemplates()
Return a
Templates instance for the strip-spaces.xsl stylesheet. |
protected void |
writeResult(javax.xml.transform.stream.StreamResult streamResult,
java.lang.Object input) |
void |
writeToWriter(java.io.Writer writer,
java.lang.Object input)
Writes the internal representation, as provided by
input
to the supplied writer according to the data format
that the implementation belongs to. |
protected static final DomXmlLogger LOG
protected static final java.lang.String STRIP_SPACE_XSL
protected DomXmlDataFormat domXmlDataFormat
protected javax.xml.transform.Templates formattingTemplates
public DomXmlDataFormatWriter(DomXmlDataFormat domXmlDataFormat)
public void writeToWriter(java.io.Writer writer,
java.lang.Object input)
DataFormatWriterinput
to the supplied writer according to the data format
that the implementation belongs to.
For example, an XML data format writer writes XML.writeToWriter in interface DataFormatWriterwriter - The writer to write the output toinput - The object to write. Can be safely cast to the internal
format of the data format.protected void writeResult(javax.xml.transform.stream.StreamResult streamResult,
java.lang.Object input)
protected javax.xml.transform.Templates reloadFormattingTemplates()
Templates instance for the strip-spaces.xsl stylesheet.
Uses the configured TransformerFactory from the DomXmlDataFormat.protected javax.xml.transform.Transformer getFormattingTransformer()
SpinXmlElementException - if no new transformer can be createdprotected javax.xml.transform.Transformer getTransformer()
SpinXmlElementException - if no new transformer can be createdCopyright © 2014–2022 Camunda Services GmbH. All rights reserved.