---
schema_version: "1"
id: 3a5754c751ad4b8f4b567e0b33f3963860de9e2e636410efc534a670ef172ee1
title: Level Enum
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_enum_compression_Level.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_compression_Level.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 72bcea6665b239b68092983ca6454b6d895119bf0acf0387f1354f27e3c73bdf
description: Specifies the compression level for creating a zip file.
---
# Level Enum

Specifies the compression level for creating a zip file.

## Usage

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

## Enum Values

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

| Value | Description |
| --- | --- |
| BEST\_COMPRESSION | Compression level for best compression. |
| BEST\_SPEED | Compression level for fastest compression. |
| DEFAULT\_LEVEL | Default compression level. |
| NO\_COMPRESSION | Compression level for no compression. |