---
title: "FileEncoding"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/fileencoding/"
product: "Aspose.PDF for Java API Reference"
description: "Encoding of the attached file. Possible values: Zip - file is compressed with ZIP, None - file is non compressed."
---

**Inheritance:**
java.lang.Object, java.lang.Enum < FileEncoding > com.aspose.pdf.FileEncoding, java.lang.Enum < FileEncoding >, com.aspose.pdf.FileEncoding

**All Implemented Interfaces:**
Serializable, Comparable < FileEncoding >

```
public enum FileEncoding extends Enum < FileEncoding >
```

Encoding of the attached file. Possible values: Zip - file is compressed with ZIP, None - file is non compressed.

## Fields

| Field | Description |
| --- | --- |
| [None](#None) | File is not compressed. |
| [Zip](#Zip) | File is compressed with ZIP algorithhm. |

## Methods

| Method | Description |
| --- | --- |
| [getByValue](#getByValue-int-) |  |
| [getValue](#getValue--) |  |
| [valueOf](#valueOf-java.lang.String-) | Returns the enum constant of this type with the specified name. |
| [values](#values--) | Returns an array containing the constants of this enum type, in the order they are declared. |

### None {#None}
```
public static final FileEncoding None
```

File is not compressed.

### Zip {#Zip}
```
public static final FileEncoding Zip
```

File is compressed with ZIP algorithhm.

### getByValue {#getByValue-int-}
```
public static FileEncoding getByValue(int value)
```



**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  |  |

### getValue {#getValue--}
```
public int getValue()
```



### valueOf {#valueOf-java.lang.String-}
Returns the enum constant of this type with the specified name.

### values {#values--}
```
public static FileEncoding [] values()
```

Returns an array containing the constants of this enum type, in the order they are declared.

**Returns:**
an array containing the constants of this enum type, in the order they are declared
