---
schema_version: "1"
id: 158375cb9fd7639ccbc9c9163665fc1817695668ab06a0ce14839af759c0f8ca
title: Method Enum
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_enum_compression_Method.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_compression_Method.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 842719635b2888e04be11aadef4d769ae47ab0b54234eee9e2afe4fa1b5773ce
description: Specifies the compression method for the zip entries.
---
# Method Enum

Specifies the compression method for the zip entries.

## Usage

Use the Method enum with the getMethod() and setMethod(method) methods in the ZipEntry and ZipWriter classes.

## Enum Values

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

| Value | Description |
| --- | --- |
| DEFLATED | Deflated compression method for compressed entries. |
| STORED | No compression method for zip entries. |