Class XMLDocumentWriter
java.lang.Object
org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
org.nuxeo.ecm.core.io.impl.plugins.XMLDocumentWriter
- All Implemented Interfaces:
DocumentWriter
- Direct Known Subclasses:
XMLDocumentTreeWriter
Writes to a file or output stream the XML corresponding to the document content.
Note that additional xml descriptors (like relations.xml, workflow.xml etc) are ignored
Also blobs are not handled specially. The value existing in the blob data element will be written down. By default blobs are referred as external references, so if their content is not written in the XML document.
In order to write Blobs are encoded as Base64 and included in the XML document
- Author:
- Bogdan Stefanescu
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the writer.write
(ExportedDocument doc) Writes a single document.Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
createCompactFormat, createPrettyPrint, write, write
-
Field Details
-
out
-
-
Constructor Details
-
XMLDocumentWriter
- Throws:
IOException
-
XMLDocumentWriter
-
-
Method Details
-
write
Description copied from interface:DocumentWriter
Writes a single document.- Specified by:
write
in interfaceDocumentWriter
- Specified by:
write
in classAbstractDocumentWriter
- Parameters:
doc
- the document to write- Returns:
- the translation map.
- Throws:
IOException
-
close
public void close()Description copied from interface:DocumentWriter
Closes the writer.
-