public abstract class AbstractDocumentWriter extends Object implements DocumentWriter
Constructor and Description |
---|
AbstractDocumentWriter() |
Modifier and Type | Method and Description |
---|---|
static org.dom4j.io.OutputFormat |
createCompactFormat() |
static org.dom4j.io.OutputFormat |
createPrettyPrint() |
DocumentTranslationMap |
write(Collection<ExportedDocument> docs)
Writes documents from the given collection.
|
abstract DocumentTranslationMap |
write(ExportedDocument doc)
Writes a single document.
|
DocumentTranslationMap |
write(ExportedDocument[] docs)
Writes an array of documents.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public AbstractDocumentWriter()
public abstract DocumentTranslationMap write(ExportedDocument doc) throws IOException
DocumentWriter
write
in interface DocumentWriter
doc
- the document to writeIOException
public DocumentTranslationMap write(ExportedDocument[] docs) throws IOException
DocumentWriter
write
in interface DocumentWriter
docs
- the array to writeIOException
public DocumentTranslationMap write(Collection<ExportedDocument> docs) throws IOException
DocumentWriter
write
in interface DocumentWriter
docs
- the documents to writeIOException
public static org.dom4j.io.OutputFormat createPrettyPrint()
public static org.dom4j.io.OutputFormat createCompactFormat()
Copyright © 2017 Nuxeo. All rights reserved.