public class NuxeoArchiveWriter extends AbstractDocumentWriter
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.
|
createCompactFormat, createPrettyPrint, write, write
public NuxeoArchiveWriter(File destination) throws IOException
IOException
public NuxeoArchiveWriter(File destination, int compressionLevel) throws IOException
IOException
public NuxeoArchiveWriter(OutputStream out) throws IOException
IOException
public NuxeoArchiveWriter(OutputStream out, int compressionLevel) throws IOException
IOException
public NuxeoArchiveWriter(ZipOutputStream out) throws IOException
IOException
public NuxeoArchiveWriter(ZipOutputStream out, int compressionLevel) throws IOException
IOException
public void setComment(String comment)
public DocumentTranslationMap write(ExportedDocument doc) throws IOException
DocumentWriter
write
in interface DocumentWriter
write
in class AbstractDocumentWriter
doc
- the document to writeIOException
public void close()
DocumentWriter
Copyright © 2015 Nuxeo SA. All rights reserved.