Package org.nuxeo.ecm.core.io
Interface DocumentXMLExporter
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DocumentXMLExporterImpl
Handles the XML export of a document.
- Since:
- 5.6
- Author:
- Antoine Taillefer
-
Method Summary
Modifier and TypeMethodDescriptionexportXML
(DocumentModel doc, CoreSession session) Exports a document to XML as anInputStream
.byte[]
exportXMLAsByteArray
(DocumentModel doc, CoreSession session) Exports a document to XML as a byte array.exportXMLAsInputSource
(DocumentModel doc, CoreSession session) Exports a document to XML as anInputSource
.
-
Method Details
-
exportXML
Exports a document to XML as anInputStream
.- Parameters:
doc
- the documentsession
- the core session- Returns:
- the input stream
-
exportXMLAsInputSource
Exports a document to XML as anInputSource
.- Parameters:
doc
- the documentsession
- the core session- Returns:
- the input source
-
exportXMLAsByteArray
Exports a document to XML as a byte array.- Parameters:
doc
- the documentsession
- the core session- Returns:
- the byte array
-