Level Enum

Specifies the compression level for creating a zip file.

Use Level enum with the getLevel() and setLevel(value) methods in the ZipWriter class.

The following are the values of the Compression.Level enum.

ValueDescription
BEST_COMPRESSIONCompression level for best compression.
BEST_SPEEDCompression level for fastest compression.
DEFAULT_LEVELDefault compression level.
NO_COMPRESSIONCompression level for no compression.