public class NuxeoArchiveWriter extends AbstractDocumentWriter
| Modifier and Type | Field and Description |
|---|---|
protected ZipOutputStream |
out |
| Constructor and Description |
|---|
NuxeoArchiveWriter(File destination) |
NuxeoArchiveWriter(File destination,
int compressionLevel) |
NuxeoArchiveWriter(OutputStream out) |
NuxeoArchiveWriter(OutputStream out,
int compressionLevel) |
NuxeoArchiveWriter(ZipOutputStream out) |
NuxeoArchiveWriter(ZipOutputStream out,
int compressionLevel) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the writer.
|
void |
setComment(String comment) |
DocumentTranslationMap |
write(ExportedDocument doc)
Writes a single document.
|
protected void |
writeDocument(String path,
ExportedDocument doc) |
protected void |
writeMarker() |
protected static void |
writeXML(org.dom4j.Document doc,
OutputStream out) |
createCompactFormat, createPrettyPrint, write, writeprotected ZipOutputStream out
public NuxeoArchiveWriter(File destination) throws IOException
IOExceptionpublic NuxeoArchiveWriter(File destination, int compressionLevel) throws IOException
IOExceptionpublic NuxeoArchiveWriter(OutputStream out) throws IOException
IOExceptionpublic NuxeoArchiveWriter(OutputStream out, int compressionLevel) throws IOException
IOExceptionpublic NuxeoArchiveWriter(ZipOutputStream out) throws IOException
IOExceptionpublic NuxeoArchiveWriter(ZipOutputStream out, int compressionLevel) throws IOException
IOExceptionpublic void setComment(String comment)
public DocumentTranslationMap write(ExportedDocument doc) throws IOException
DocumentWriterwrite in interface DocumentWriterwrite in class AbstractDocumentWriterdoc - the document to writeIOExceptionpublic void close()
DocumentWriterprotected void writeDocument(String path, ExportedDocument doc) throws IOException
IOExceptionprotected static void writeXML(org.dom4j.Document doc, OutputStream out) throws IOException
IOExceptionprotected void writeMarker() throws IOException
IOExceptionCopyright © 2019 Nuxeo. All rights reserved.