Package org.nuxeo.ecm.core.io.impl
Class DocumentXMLExporterImpl
- java.lang.Object
-
- org.nuxeo.ecm.core.io.impl.DocumentXMLExporterImpl
-
- All Implemented Interfaces:
Serializable
,DocumentXMLExporter
public class DocumentXMLExporterImpl extends Object implements DocumentXMLExporter
Default implementation of aDocumentXMLExporter
.- Since:
- 5.6
- Author:
- Antoine Taillefer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentXMLExporterImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
public InputStream exportXML(DocumentModel doc, CoreSession session)
Exports a document to XML as anInputStream
.- Specified by:
exportXML
in interfaceDocumentXMLExporter
- Parameters:
doc
- the documentsession
- the core session- Returns:
- the input stream
-
exportXMLAsInputSource
public InputSource exportXMLAsInputSource(DocumentModel doc, CoreSession session)
Exports a document to XML as anInputSource
.- Specified by:
exportXMLAsInputSource
in interfaceDocumentXMLExporter
- Parameters:
doc
- the documentsession
- the core session- Returns:
- the input source
-
exportXMLAsByteArray
public final byte[] exportXMLAsByteArray(DocumentModel doc, CoreSession session)
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
-
-