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
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.core.io.impl.plugins.XMLDocumentWriter
out
-
-
Constructor Summary
Constructors Constructor Description XMLDocumentTreeWriter(File file)
XMLDocumentTreeWriter(OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the writer.protected org.dom4j.io.XMLWriter
initWriter()
DocumentTranslationMap
write(Collection<ExportedDocument> docs)
Writes documents from the given collection.DocumentTranslationMap
write(ExportedDocument doc)
Writes a single document.DocumentTranslationMap
write(ExportedDocument[] docs)
Writes an array of documents.-
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
createCompactFormat, createPrettyPrint
-
-
-
-
Constructor Detail
-
XMLDocumentTreeWriter
public XMLDocumentTreeWriter(File file) throws IOException
- Throws:
IOException
-
XMLDocumentTreeWriter
public XMLDocumentTreeWriter(OutputStream out)
-
-
Method Detail
-
initWriter
protected org.dom4j.io.XMLWriter initWriter()
-
write
public DocumentTranslationMap write(ExportedDocument doc) throws IOException
Description copied from interface:DocumentWriter
Writes a single document.- Specified by:
write
in interfaceDocumentWriter
- Overrides:
write
in classXMLDocumentWriter
- 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 interfaceDocumentWriter
- Overrides:
write
in classAbstractDocumentWriter
- 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 interfaceDocumentWriter
- Overrides:
write
in classAbstractDocumentWriter
- 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 interfaceDocumentWriter
- Overrides:
close
in classXMLDocumentWriter
-
-