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) |
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)
writeToWriter in interface DataFormatWriterprotected 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.