Package org.nuxeo.ecm.core.io
Interface DocumentXMLExporter
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DocumentXMLExporterImpl
public interface DocumentXMLExporter extends Serializable
Handles the XML export of a document.- Since:
- 5.6
- Author:
- Antoine Taillefer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
exportXML(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.InputSource
exportXMLAsInputSource(DocumentModel doc, CoreSession session)
Exports a document to XML as anInputSource
.
-
-
-
Method Detail
-
exportXML
InputStream exportXML(DocumentModel doc, CoreSession session)
Exports a document to XML as anInputStream
.- Parameters:
doc
- the documentsession
- the core session- Returns:
- the input stream
-
exportXMLAsInputSource
InputSource exportXMLAsInputSource(DocumentModel doc, CoreSession session)
Exports a document to XML as anInputSource
.- Parameters:
doc
- the documentsession
- the core session- Returns:
- the input source
-
exportXMLAsByteArray
byte[] exportXMLAsByteArray(DocumentModel doc, CoreSession session)
Exports a document to XML as a byte array.- Parameters:
doc
- the documentsession
- the core session- Returns:
- the byte array
-
-