public class DocumentXMLExporterImpl extends Object implements DocumentXMLExporter
DocumentXMLExporter
.Constructor and Description |
---|
DocumentXMLExporterImpl() |
Modifier and Type | Method and Description |
---|---|
InputStream |
exportXML(DocumentModel doc,
CoreSession session)
Exports a document to XML as an
InputStream . |
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 an
InputSource . |
public InputStream exportXML(DocumentModel doc, CoreSession session) throws ClientException
InputStream
.exportXML
in interface DocumentXMLExporter
doc
- the documentsession
- the core sessionClientException
- if an error occurs while exporting the document
to XMLpublic InputSource exportXMLAsInputSource(DocumentModel doc, CoreSession session) throws ClientException
InputSource
.exportXMLAsInputSource
in interface DocumentXMLExporter
doc
- the documentsession
- the core sessionClientException
- if an error occurs while exporting the document
to XMLpublic final byte[] exportXMLAsByteArray(DocumentModel doc, CoreSession session) throws ClientException
exportXMLAsByteArray
in interface DocumentXMLExporter
doc
- the documentsession
- the core sessionClientException
- if an error occurs while exporting the document
to XMLCopyright © 2012 Nuxeo SA. All Rights Reserved.