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
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.io.impl.plugins.XMLDocumentWriter
out
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the writer.protected org.dom4j.io.XMLWriter
write
(Collection<ExportedDocument> docs) Writes documents from the given collection.write
(ExportedDocument doc) Writes a single document.write
(ExportedDocument[] docs) Writes an array of documents.Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
createCompactFormat, createPrettyPrint
-
Constructor Details
-
XMLDocumentTreeWriter
- Throws:
IOException
-
XMLDocumentTreeWriter
-
-
Method Details
-
initWriter
protected org.dom4j.io.XMLWriter initWriter() -
write
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
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
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
-