public class XMLDocumentTreeWriter extends XMLDocumentWriter
out| Constructor and Description |
|---|
XMLDocumentTreeWriter(File file) |
XMLDocumentTreeWriter(OutputStream out) |
| Modifier and Type | Method and 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.
|
createCompactFormat, createPrettyPrintpublic XMLDocumentTreeWriter(File file) throws IOException
IOExceptionpublic XMLDocumentTreeWriter(OutputStream out)
protected org.dom4j.io.XMLWriter initWriter()
public DocumentTranslationMap write(ExportedDocument doc) throws IOException
DocumentWriterwrite in interface DocumentWriterwrite in class XMLDocumentWriterdoc - the document to writeIOExceptionpublic DocumentTranslationMap write(ExportedDocument[] docs) throws IOException
DocumentWriterwrite in interface DocumentWriterwrite in class AbstractDocumentWriterdocs - the array to writeIOExceptionpublic DocumentTranslationMap write(Collection<ExportedDocument> docs) throws IOException
DocumentWriterwrite in interface DocumentWriterwrite in class AbstractDocumentWriterdocs - the documents to writeIOExceptionpublic void close()
DocumentWriterclose in interface DocumentWriterclose in class XMLDocumentWriterCopyright © 2018 Nuxeo. All rights reserved.