Top Description Fields Constructors Methods
org.apache.commons.compress.archivers.zip

public final Enum Zip64Mode

extends Enum<Zip64Mode>
Class Inheritance

The different modes ZipArchiveOutputStream can operate in.
Since
1.3
See Also
ZipArchiveOutputStream#setUseZip64

Field Summary

Modifier and TypeField and Description
public static final Zip64Mode
Always

Use Zip64 extensions for all entries, even if it is clear it is not required.

public static final Zip64Mode
AlwaysWithCompatibility

Always use Zip64 extensions for LFH and central directory as Zip64Mode#Always did, and at the meantime encode the relative offset of LFH and disk number start as needed in CFH as Zip64Mode#AsNeeded did.

public static final Zip64Mode
AsNeeded

Use Zip64 extensions for all entries where they are required, don't use them for entries that clearly don't require them.

public static final Zip64Mode
Never

Don't use Zip64 extensions for any entries.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Zip64Mode
public static Zip64Mode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

Alwaysback to summary
public static final Zip64Mode Always

Use Zip64 extensions for all entries, even if it is clear it is not required.

AlwaysWithCompatibilityback to summary
public static final Zip64Mode AlwaysWithCompatibility

Always use Zip64 extensions for LFH and central directory as Zip64Mode#Always did, and at the meantime encode the relative offset of LFH and disk number start as needed in CFH as Zip64Mode#AsNeeded did.

This is a compromise for some libraries including 7z and Expand-Archive Powershell utility(and likely Excel).

AsNeededback to summary
public static final Zip64Mode AsNeeded

Use Zip64 extensions for all entries where they are required, don't use them for entries that clearly don't require them.

Neverback to summary
public static final Zip64Mode Never

Don't use Zip64 extensions for any entries.

This will cause a Zip64RequiredException to be thrown if ZipArchiveOutputStream detects it needs Zip64 support.

Constructor Detail

Zip64Modeback to summary
private Zip64Mode()

Method Detail

valueOfback to summary
public static Zip64Mode valueOf(String name)
valuesback to summary
public static Zip64Mode[] values()