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 SummaryConstructors Constructor Description AbstractDocumentWriter()
 - 
Method SummaryAll 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.nuxeo.ecm.core.io.DocumentWriterclose
 
- 
 
- 
- 
- 
Method Detail- 
writepublic abstract DocumentTranslationMap write(ExportedDocument doc) throws IOException Description copied from interface:DocumentWriterWrites a single document.- Specified by:
- writein interface- DocumentWriter
- Parameters:
- doc- the document to write
- Returns:
- the translation map.
- Throws:
- IOException
 
 - 
writepublic DocumentTranslationMap write(ExportedDocument[] docs) throws IOException Description copied from interface:DocumentWriterWrites an array of documents.- Specified by:
- writein interface- DocumentWriter
- Parameters:
- docs- the array to write
- Returns:
- the translation map.
- Throws:
- IOException
 
 - 
writepublic DocumentTranslationMap write(Collection<ExportedDocument> docs) throws IOException Description copied from interface:DocumentWriterWrites documents from the given collection.- Specified by:
- writein interface- DocumentWriter
- Parameters:
- docs- the documents to write
- Returns:
- the translation map.
- Throws:
- IOException
 
 - 
createPrettyPrintpublic static org.dom4j.io.OutputFormat createPrettyPrint() 
 - 
createCompactFormatpublic static org.dom4j.io.OutputFormat createCompactFormat() 
 
- 
 
-