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
FieldsModifier and TypeFieldDescriptionprotected static final StringDeprecated.since 2023.3, not used anymoreprotected ZipOutputStream -
Constructor Summary
ConstructorsConstructorDescriptionNuxeoArchiveWriter(File destination) NuxeoArchiveWriter(File destination, int compressionLevel) NuxeoArchiveWriter(OutputStream out, int compressionLevel) NuxeoArchiveWriter(ZipOutputStream out, int compressionLevel) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the writer.voidsetComment(String comment) write(ExportedDocument doc) Writes a single document.protected voidwriteDocument(String path, ExportedDocument doc) protected voidprotected static voidwriteXML(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:DocumentWriterWrites a single document.- Specified by:
writein interfaceDocumentWriter- Specified by:
writein classAbstractDocumentWriter- Parameters:
doc- the document to write- Returns:
- the translation map.
- Throws:
IOException
-
close
public void close()Description copied from interface:DocumentWriterCloses the writer. -
writeDocument
- Throws:
IOException
-
writeXML
- Throws:
IOException
-
writeMarker
- Throws:
IOException
-