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