|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter org.nuxeo.ecm.core.io.impl.plugins.XMLDocumentWriter
public class XMLDocumentWriter
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. 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
Constructor Summary | |
---|---|
XMLDocumentWriter(File file)
|
|
XMLDocumentWriter(OutputStream out)
|
Method Summary | |
---|---|
void |
close()
Closes the writer. |
DocumentTranslationMap |
write(ExportedDocument doc)
Writes a single document. |
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter |
---|
createCompactFormat, createPrettyPrint, write, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLDocumentWriter(File file) throws IOException
IOException
public XMLDocumentWriter(OutputStream out)
Method Detail |
---|
public DocumentTranslationMap write(ExportedDocument doc) throws IOException
DocumentWriter
write
in interface DocumentWriter
write
in class AbstractDocumentWriter
doc
- the document to write
IOException
public void close()
DocumentWriter
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |