Package org.nuxeo.ecm.core.io
Interface IODocumentManager
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
IODocumentManagerImpl
Defines functional interface that deals directly with documents import using provided DocumentReader or InputStream
as a source and DocumentWriter that knows how the documents will be saved into the repository.
- Author:
- Dragos Mihalache
-
Method Summary
Modifier and TypeMethodDescriptionexportDocuments
(OutputStream out, String repo, Collection<DocumentRef> sources, boolean recurse, String format) exportDocuments
(OutputStream out, DocumentReader customDocReader, String format) Used in pair with importDocuments(... customDocWriter)importDocuments
(InputStream in, String repo, DocumentRef root) importDocuments
(InputStream in, DocumentWriter customDocWriter) importDocuments
(DocumentReader customDocReader, DocumentWriter customDocWriter)
-
Method Details
-
importDocuments
DocumentTranslationMap importDocuments(InputStream in, String repo, DocumentRef root) throws IOException - Throws:
IOException
-
importDocuments
-
importDocuments
DocumentTranslationMap importDocuments(DocumentReader customDocReader, DocumentWriter customDocWriter) - Parameters:
customDocReader
- reader from the input stream
-
exportDocuments
DocumentTranslationMap exportDocuments(OutputStream out, String repo, Collection<DocumentRef> sources, boolean recurse, String format) -
exportDocuments
DocumentTranslationMap exportDocuments(OutputStream out, DocumentReader customDocReader, String format) Used in pair with importDocuments(... customDocWriter)
-