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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the writer.protected org.dom4j.io.XMLWriterwrite(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:DocumentWriterWrites a single document.- Specified by:
writein interfaceDocumentWriter- Overrides:
writein classXMLDocumentWriter- Parameters:
doc- the document to write- Returns:
- the translation map.
- Throws:
IOException
-
write
Description copied from interface:DocumentWriterWrites an array of documents.- Specified by:
writein interfaceDocumentWriter- Overrides:
writein classAbstractDocumentWriter- Parameters:
docs- the array to write- Returns:
- the translation map.
- Throws:
IOException
-
write
Description copied from interface:DocumentWriterWrites documents from the given collection.- Specified by:
writein interfaceDocumentWriter- Overrides:
writein classAbstractDocumentWriter- Parameters:
docs- the documents to write- Returns:
- the translation map.
- Throws:
IOException
-
close
public void close()Description copied from interface:DocumentWriterCloses the writer.- Specified by:
closein interfaceDocumentWriter- Overrides:
closein classXMLDocumentWriter
-