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 voidclose()Closes the writer.protected org.dom4j.io.XMLWriterinitWriter()DocumentTranslationMapwrite(Collection<ExportedDocument> docs)Writes documents from the given collection.DocumentTranslationMapwrite(ExportedDocument doc)Writes a single document.DocumentTranslationMapwrite(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:DocumentWriterWrites a single document.- Specified by:
writein interfaceDocumentWriter- Overrides:
writein 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: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
public DocumentTranslationMap write(Collection<ExportedDocument> docs) throws IOException
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
-
-