Package org.nuxeo.ecm.core.io.impl
Class DocumentXMLExporterImpl
java.lang.Object
org.nuxeo.ecm.core.io.impl.DocumentXMLExporterImpl
- All Implemented Interfaces:
Serializable
,DocumentXMLExporter
Default implementation of a
DocumentXMLExporter
.- Since:
- 5.6
- Author:
- Antoine Taillefer
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexportXML
(DocumentModel doc, CoreSession session) Exports a document to XML as anInputStream
.final 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
.
-
Constructor Details
-
DocumentXMLExporterImpl
public DocumentXMLExporterImpl()
-
-
Method Details
-
exportXML
Exports a document to XML as anInputStream
.- Specified by:
exportXML
in interfaceDocumentXMLExporter
- Parameters:
doc
- the documentsession
- the core session- Returns:
- the input stream
-
exportXMLAsInputSource
Exports a document to XML as anInputSource
.- Specified by:
exportXMLAsInputSource
in interfaceDocumentXMLExporter
- Parameters:
doc
- the documentsession
- the core session- Returns:
- the input source
-
exportXMLAsByteArray
Exports a document to XML as a byte array.- Specified by:
exportXMLAsByteArray
in interfaceDocumentXMLExporter
- Parameters:
doc
- the documentsession
- the core session- Returns:
- the byte array
-