public class SevenZ extends ArchiveBase
Modifier and Type | Class and Description |
---|---|
static class |
SevenZ.ContentMethod
Container for a supported 7z method and its configuration.
|
ArchiveBase.Duplicate, ArchiveBase.EntryBuilder, ArchiveBase.FileSetBuilder, ArchiveBase.Mode, ArchiveBase.ResourceCollectionFlags, ArchiveBase.ResourceFlags, ArchiveBase.ResourceWithFlags, ArchiveBase.WhenEmpty
Constructor and Description |
---|
SevenZ() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredContentMethod(SevenZ.ContentMethod cm)
Adds a compression method to use for entry contents - the
default is LZMA2 with no additional options.
|
void |
setContentCompression(java.lang.String method)
Sets the compression method to use for entry contents - the
default is LZMA2 with no additional options.
|
void |
setKeepCompression(boolean keep)
Whether the original compression of entries coming from a 7z
archive should be kept (for example when updating an archive).
|
add, addConfiguredDest, addDuplicate, bendSlashesForward, ensureParentDirs, execute, findSources, findUnmatchedTargets, getDest, getEncoding, getEntryBuilder, getFactory, getFileSetBuilder, getFlags, getFlags, getMode, getPreserveLeadingSlashes, isFilesOnly, isUpToDate, round, setDest, setDestfile, setDuplicate, setEncoding, setEntryBuilder, setFactory, setFileSetBuilder, setFilesOnly, setMode, setPreserve0permissions, setPreserveLeadingSlashes, setRoundUp, setWhenempty, sort, validate, writeArchive
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setContentCompression(java.lang.String method)
As of Commons Compress 1.8 only COPY (which means no compression), LZMA2, BZIP2 and DEFLATE are supported.
public void addConfiguredContentMethod(SevenZ.ContentMethod cm)
public void setKeepCompression(boolean keep)
keep
- if true, keep the original compression