Package org.nuxeo.ecm.core.io.impl
Class AbstractDocumentWriter
java.lang.Object
org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
- All Implemented Interfaces:
DocumentWriter
- Direct Known Subclasses:
AbstractDocumentModelWriter
,NuxeoArchiveWriter
,XMLDirectoryWriter
,XMLDocumentWriter
- Author:
- Bogdan Stefanescu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.dom4j.io.OutputFormat
static org.dom4j.io.OutputFormat
write
(Collection<ExportedDocument> docs) Writes documents from the given collection.abstract DocumentTranslationMap
write
(ExportedDocument doc) Writes a single document.write
(ExportedDocument[] docs) Writes an array of documents.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.core.io.DocumentWriter
close
-
Constructor Details
-
AbstractDocumentWriter
public AbstractDocumentWriter()
-
-
Method Details
-
write
Description copied from interface:DocumentWriter
Writes a single document.- Specified by:
write
in interfaceDocumentWriter
- Parameters:
doc
- the document to write- Returns:
- the translation map.
- Throws:
IOException
-
write
Description copied from interface:DocumentWriter
Writes an array of documents.- Specified by:
write
in interfaceDocumentWriter
- Parameters:
docs
- the array to write- Returns:
- the translation map.
- Throws:
IOException
-
write
Description copied from interface:DocumentWriter
Writes documents from the given collection.- Specified by:
write
in interfaceDocumentWriter
- Parameters:
docs
- the documents to write- Returns:
- the translation map.
- Throws:
IOException
-
createPrettyPrint
public static org.dom4j.io.OutputFormat createPrettyPrint() -
createCompactFormat
public static org.dom4j.io.OutputFormat createCompactFormat()
-