public class Zip extends ArchiveBase
Modifier and Type | Class and Description |
---|---|
static class |
Zip.UnicodeExtraField
Policiy for creation of Unicode extra fields: never, always or
not-encodeable.
|
static class |
Zip.Zip64Enum
Policiy for creation of Zip64 extended information: never, always or
as-needed.
|
ArchiveBase.Duplicate, ArchiveBase.EntryBuilder, ArchiveBase.FileSetBuilder, ArchiveBase.Mode, ArchiveBase.ResourceCollectionFlags, ArchiveBase.ResourceFlags, ArchiveBase.ResourceWithFlags, ArchiveBase.WhenEmpty
Constructor and Description |
---|
Zip() |
Modifier and Type | Method and Description |
---|---|
void |
setComment(java.lang.String comment)
Comment to use for archive.
|
void |
setCreateUnicodeExtraFields(Zip.UnicodeExtraField b)
Whether Unicode extra fields will be created.
|
void |
setFallBackToUTF8(boolean b)
Whether to fall back to UTF-8 if a name cannot be encoded using
the specified encoding.
|
void |
setKeepCompression(boolean keep)
Whether the original compression of entries coming from a ZIP
archive should be kept (for example when updating an archive).
|
void |
setLevel(int level)
Set the compression level to use.
|
void |
setUseLanguageEncodingFlag(boolean b)
Whether to set the language encoding flag.
|
void |
setZip64Mode(Zip.Zip64Enum mode)
Whether to create Zip64 extended information.
|
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 setLevel(int level)
level
- compression level.public void setComment(java.lang.String comment)
comment
- The content of the comment.public void setKeepCompression(boolean keep)
keep
- if true, keep the original compressionpublic void setFallBackToUTF8(boolean b)
Defaults to false.
public void setUseLanguageEncodingFlag(boolean b)
public void setCreateUnicodeExtraFields(Zip.UnicodeExtraField b)
public void setZip64Mode(Zip.Zip64Enum mode)