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
public abstract class AbstractDocumentWriter extends Object implements DocumentWriter
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description AbstractDocumentWriter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static org.dom4j.io.OutputFormatcreateCompactFormat()static org.dom4j.io.OutputFormatcreatePrettyPrint()DocumentTranslationMapwrite(Collection<ExportedDocument> docs)Writes documents from the given collection.abstract DocumentTranslationMapwrite(ExportedDocument doc)Writes a single document.DocumentTranslationMapwrite(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
-
-
-
-
Method Detail
-
write
public abstract DocumentTranslationMap write(ExportedDocument doc) throws IOException
Description copied from interface:DocumentWriterWrites a single document.- Specified by:
writein interfaceDocumentWriter- Parameters:
doc- the document to write- Returns:
- the translation map.
- Throws:
IOException
-
write
public DocumentTranslationMap write(ExportedDocument[] docs) throws IOException
Description copied from interface:DocumentWriterWrites an array of documents.- Specified by:
writein interfaceDocumentWriter- Parameters:
docs- the array to write- Returns:
- the translation map.
- Throws:
IOException
-
write
public DocumentTranslationMap write(Collection<ExportedDocument> docs) throws IOException
Description copied from interface:DocumentWriterWrites documents from the given collection.- Specified by:
writein 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()
-
-