Package org.nuxeo.ecm.core.io
Interface DocumentWriter
- All Known Implementing Classes:
AbstractDocumentModelWriter
,AbstractDocumentWriter
,DocumentModelInjector
,DocumentModelUpdater
,DocumentModelWriter
,ExtensibleDocumentWriter
,NuxeoArchiveWriter
,XMLDirectoryWriter
,XMLDocumentTreeWriter
,XMLDocumentWriter
public interface DocumentWriter
A document writer.
This writer is designed to be accessible remotely (over a network).
- Author:
- Bogdan Stefanescu
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the writer.write
(Collection<ExportedDocument> docs) Writes documents from the given collection.write
(ExportedDocument doc) Writes a single document.write
(ExportedDocument[] docs) Writes an array of documents.
-
Method Details
-
write
Writes a single document.- Parameters:
doc
- the document to write- Returns:
- the translation map.
- Throws:
IOException
-
write
Writes an array of documents.- Parameters:
docs
- the array to write- Returns:
- the translation map.
- Throws:
IOException
-
write
Writes documents from the given collection.- Parameters:
docs
- the documents to write- Returns:
- the translation map.
- Throws:
IOException
-
close
void close()Closes the writer.
-