public class DomXmlDataFormatWriter extends Object implements DataFormatWriter
| Modifier and Type | Field and Description |
|---|---|
protected DomXmlDataFormat |
domXmlDataFormat |
protected static DomXmlLogger |
LOG |
| Constructor and Description |
|---|
DomXmlDataFormatWriter(DomXmlDataFormat domXmlDataFormat) |
| Modifier and Type | Method and Description |
|---|---|
protected Transformer |
getTransformer()
Returns a configured transformer to write XML.
|
protected void |
writeResult(StreamResult streamResult,
Object input) |
void |
writeToWriter(Writer writer,
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 DomXmlDataFormat domXmlDataFormat
public DomXmlDataFormatWriter(DomXmlDataFormat domXmlDataFormat)
public void writeToWriter(Writer writer, 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(StreamResult streamResult, Object input)
protected Transformer getTransformer()
SpinXmlElementException - if no new transformer can be createdCopyright © 2014–2020 Camunda Services GmbH. All rights reserved.