org.nuxeo.ecm.core.io.impl.plugins
Class XMLDocumentTreeWriter
java.lang.Object
org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
org.nuxeo.ecm.core.io.impl.plugins.XMLDocumentWriter
org.nuxeo.ecm.core.io.impl.plugins.XMLDocumentTreeWriter
- All Implemented Interfaces:
- DocumentWriter
public class XMLDocumentTreeWriter
- extends XMLDocumentWriter
XMLDocumentTreeWriter
public XMLDocumentTreeWriter(File file)
throws IOException
- Throws:
IOException
XMLDocumentTreeWriter
public XMLDocumentTreeWriter(OutputStream out)
write
public DocumentTranslationMap write(ExportedDocument doc)
throws IOException
- Description copied from interface:
DocumentWriter
- Writes a single document.
- Specified by:
write
in interface DocumentWriter
- Overrides:
write
in class XMLDocumentWriter
- 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
- Overrides:
write
in class AbstractDocumentWriter
- 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
- Overrides:
write
in class AbstractDocumentWriter
- Parameters:
docs
- the documents to write
- Returns:
- the translation map.
- Throws:
IOException
close
public void close()
- Description copied from interface:
DocumentWriter
- Closes the writer.
- Specified by:
close
in interface DocumentWriter
- Overrides:
close
in class XMLDocumentWriter
Copyright © 2011 Nuxeo SAS. All Rights Reserved.