public class XMLDocumentTreeWriter extends XMLDocumentWriter
Constructor and Description |
---|
XMLDocumentTreeWriter(File file) |
XMLDocumentTreeWriter(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the writer.
|
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, createPrettyPrint
public XMLDocumentTreeWriter(File file) throws IOException
IOException
public XMLDocumentTreeWriter(OutputStream out)
public DocumentTranslationMap write(ExportedDocument doc) throws IOException
DocumentWriter
write
in interface DocumentWriter
write
in class XMLDocumentWriter
doc
- the document to writeIOException
public DocumentTranslationMap write(ExportedDocument[] docs) throws IOException
DocumentWriter
write
in interface DocumentWriter
write
in class AbstractDocumentWriter
docs
- the array to writeIOException
public DocumentTranslationMap write(Collection<ExportedDocument> docs) throws IOException
DocumentWriter
write
in interface DocumentWriter
write
in class AbstractDocumentWriter
docs
- the documents to writeIOException
public void close()
DocumentWriter
close
in interface DocumentWriter
close
in class XMLDocumentWriter
Copyright © 2015 Nuxeo SA. All rights reserved.