Class NuxeoArchiveWriter
java.lang.Object
org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
org.nuxeo.ecm.core.io.impl.plugins.NuxeoArchiveWriter
- All Implemented Interfaces:
DocumentWriter
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
Deprecated.since 2023.3, not used anymoreprotected ZipOutputStream
-
Constructor Summary
ConstructorDescriptionNuxeoArchiveWriter
(File destination) NuxeoArchiveWriter
(File destination, int compressionLevel) NuxeoArchiveWriter
(OutputStream out, int compressionLevel) NuxeoArchiveWriter
(ZipOutputStream out, int compressionLevel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the writer.void
setComment
(String comment) write
(ExportedDocument doc) Writes a single document.protected void
writeDocument
(String path, ExportedDocument doc) protected void
protected static void
writeXML
(org.dom4j.Document doc, OutputStream out) Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
createCompactFormat, createPrettyPrint, write, write
-
Field Details
-
ENABLE_EXTRA_FILES_COUNT_KEY
Deprecated.since 2023.3, not used anymore- Since:
- 2021.13
- See Also:
-
out
-
-
Constructor Details
-
NuxeoArchiveWriter
- Throws:
IOException
-
NuxeoArchiveWriter
- Throws:
IOException
-
NuxeoArchiveWriter
- Throws:
IOException
-
NuxeoArchiveWriter
- Throws:
IOException
-
NuxeoArchiveWriter
- Throws:
IOException
-
NuxeoArchiveWriter
- Throws:
IOException
-
-
Method Details
-
setComment
-
write
Description copied from interface:DocumentWriter
Writes a single document.- Specified by:
write
in interfaceDocumentWriter
- Specified by:
write
in classAbstractDocumentWriter
- Parameters:
doc
- the document to write- Returns:
- the translation map.
- Throws:
IOException
-
close
public void close()Description copied from interface:DocumentWriter
Closes the writer. -
writeDocument
- Throws:
IOException
-
writeXML
- Throws:
IOException
-
writeMarker
- Throws:
IOException
-