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, write
protected final OutputStream out
public XMLDocumentWriter(File file) throws IOException
IOException
public XMLDocumentWriter(OutputStream out)
public DocumentTranslationMap write(ExportedDocument doc) throws IOException
DocumentWriter
write
in interface DocumentWriter
write
in class AbstractDocumentWriter
doc
- the document to writeIOException
public void close()
DocumentWriter
Copyright © 2015 Nuxeo SA. All rights reserved.