public static final class Zip.Zip64ModeAttribute extends EnumeratedAttribute
never: never add any Zip64 extensions. This will cause the task to fail if you try to add entries bigger than 4GB or create an archive bigger than 4GB or holding more that 65535 entries.
as-needed: create Zip64 extensions only when the entry's size is bigger than 4GB or one of the archive limits is hit. This mode also adds partial Zip64 extensions for all deflated entries written by Ant.
always: create Zip64 extensions for all entries.
Note some ZIP implementations don't handle Zip64 extensions well and others may fail if the Zip64 extra field data is only present inside the local file header but not the central directory - which is what as-needed may result in. Java5 and Microsoft Visual Studio's Extension loader are known to fconsider the archive broken in such cases. If you are targeting such an archiver uset the value never unless you know you need Zip64 extensions.
Modifier and Type | Field and Description |
---|---|
static Zip.Zip64ModeAttribute |
AS_NEEDED |
static Zip.Zip64ModeAttribute |
NEVER |
value
Constructor and Description |
---|
Zip64ModeAttribute() |
Modifier and Type | Method and Description |
---|---|
Zip64Mode |
getMode() |
String[] |
getValues()
This is the only method a subclass needs to implement.
|
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
public static final Zip.Zip64ModeAttribute AS_NEEDED
public static final Zip.Zip64ModeAttribute NEVER
public Zip64Mode getMode()
public String[] getValues()
EnumeratedAttribute
getValues
in class EnumeratedAttribute