public class XMLDocumentWriter extends AbstractDocumentWriter
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. If you want to
encode blobs as base64 inside the document you must use the InlineBlobTransformer
In order to write Blobs are encoded as Base64 and included in the XML document
| Modifier and Type | Field and Description |
|---|---|
protected OutputStream |
out |
| Constructor and Description |
|---|
XMLDocumentWriter(File file) |
XMLDocumentWriter(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the writer.
|
DocumentTranslationMap |
write(ExportedDocument doc)
Writes a single document.
|
createCompactFormat, createPrettyPrint, write, writeprotected final OutputStream out
public XMLDocumentWriter(File file) throws IOException
IOExceptionpublic XMLDocumentWriter(OutputStream out)
public DocumentTranslationMap write(ExportedDocument doc) throws IOException
DocumentWriterwrite in interface DocumentWriterwrite in class AbstractDocumentWriterdoc - the document to writeIOExceptionpublic void close()
DocumentWriterCopyright © 2019 Nuxeo. All rights reserved.