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, write
protected ZipOutputStream out
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
protected void writeDocument(String path, ExportedDocument doc) throws IOException
IOException
protected static void writeXML(org.dom4j.Document doc, OutputStream out) throws IOException
IOException
protected void writeMarker() throws IOException
IOException
Copyright © 2018 Nuxeo. All rights reserved.