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
AbstractDocumentWriter
public AbstractDocumentWriter()
write
public abstract DocumentTranslationMap write(ExportedDocument doc)
throws IOException
- Description copied from interface:
DocumentWriter
- Writes a single document.
- Specified by:
write
in interface DocumentWriter
- Parameters:
doc
- the document to write
- Returns:
- the translation map.
- Throws:
IOException
write
public DocumentTranslationMap write(ExportedDocument[] docs)
throws IOException
- Description copied from interface:
DocumentWriter
- Writes an array of documents.
- Specified by:
write
in interface DocumentWriter
- 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:
DocumentWriter
- Writes documents from the given collection.
- Specified by:
write
in interface DocumentWriter
- 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()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.