## Uses of Class
org.restlet.data.Encoding

Packages that use Encoding
Package | Description
--- | ---
org.restlet.data | Information exchanged by components.
org.restlet.engine.application | Supports Restlet applications.
org.restlet.engine.http.header | Supports HTTP header parsing and formatting.
org.restlet.engine.util | General utilities.
org.restlet.representation | Common representation data elements.
org.restlet.service | Services used by applications and components.
org.restlet.util | Various utility classes.

### Uses of Encoding in org.restlet.data

Fields in org.restlet.data declared as Encoding
Modifier and Type | Field and Description
--- | ---
`static Encoding` | Encoding.`ALL` All encodings acceptable.
`static Encoding` | Encoding.`COMPRESS` The common Unix file compression.
`static Encoding` | Encoding.`DEFLATE` The zlib format defined by RFC 1950 and 1951.
`static Encoding` | Encoding.`FREEMARKER` The FreeMarker encoding.
`static Encoding` | Encoding.`GZIP` The GNU Zip encoding.
`static Encoding` | Encoding.`IDENTITY` The default (identity) encoding.
`static Encoding` | Encoding.`VELOCITY` The Velocity encoding.
`static Encoding` | Encoding.`ZIP` The Info-Zip encoding.

Methods in org.restlet.data that return Encoding
Modifier and Type | Method and Description
--- | ---
`Encoding` | ClientInfo.`getPreferredEncoding(java.util.List<Encoding> supported)` Returns the preferred encoding among a list of supported ones, based on the client preferences.
`static Encoding` | Encoding.`valueOf(java.lang.String name)` Returns the encoding associated to a name.

Methods in org.restlet.data that return types with arguments of type Encoding
Modifier and Type | Method and Description
--- | ---
`java.util.List<Preference<Encoding>>` | ClientInfo.`getAcceptedEncodings()` Returns the modifiable list of encoding preferences.

Method parameters in org.restlet.data with type arguments of type Encoding
Modifier and Type | Method and Description
--- | ---
`Encoding` | ClientInfo.`getPreferredEncoding(java.util.List<Encoding> supported)` Returns the preferred encoding among a list of supported ones, based on the client preferences.
`void` | ClientInfo.`setAcceptedEncodings(java.util.List<Preference<Encoding>> acceptedEncodings)` Sets the encoding preferences.

### Uses of Encoding in org.restlet.engine.application

Methods in org.restlet.engine.application that return Encoding
Modifier and Type | Method and Description
--- | ---
`Encoding` | Encoder.`getBestEncoding(ClientInfo client)` Returns the best supported encoding for a given client.
`Encoding` | MetadataExtension.`getEncoding()` Returns the encoding.

Methods in org.restlet.engine.application that return types with arguments of type Encoding
Modifier and Type | Method and Description
--- | ---
`java.util.List<Encoding>` | EncodeRepresentation.`getEncodings()` Returns the applied encodings.
`java.util.List<Encoding>` | DecodeRepresentation.`getEncodings()` Returns the encodings applied to the entity.
`static java.util.List<Encoding>` | EncodeRepresentation.`getSupportedEncodings()` Returns the list of supported encodings.
`static java.util.List<Encoding>` | DecodeRepresentation.`getSupportedEncodings()` Returns the list of supported encodings.
`java.util.List<Encoding>` | Encoder.`getSupportedEncodings()` Returns the list of supported encodings.

Constructors in org.restlet.engine.application with parameters of type Encoding
Constructor and Description
`EncodeRepresentation(Encoding encoding, Representation wrappedRepresentation)` Constructor.

### Uses of Encoding in org.restlet.engine.http.header

Methods in org.restlet.engine.http.header that return Encoding
Modifier and Type | Method and Description
--- | ---
`Encoding` | EncodingReader.`readValue()`

Methods in org.restlet.engine.http.header with parameters of type Encoding
Modifier and Type | Method and Description
--- | ---
`protected boolean` | EncodingReader.`canAdd(Encoding value, java.util.Collection<Encoding> values)`
`protected boolean` | EncodingWriter.`canWrite(Encoding encoding)`

Method parameters in org.restlet.engine.http.header with type arguments of type Encoding
Modifier and Type | Method and Description
--- | ---
`protected boolean` | EncodingReader.`canAdd(Encoding value, java.util.Collection<Encoding> values)`
`static java.lang.String` | EncodingWriter.`write(java.util.List<Encoding> encodings)` Writes a list of encodings.

### Uses of Encoding in org.restlet.engine.util

Methods in org.restlet.engine.util that return types with arguments of type Encoding
Modifier and Type | Method and Description
--- | ---
`protected java.util.List<Preference<Encoding>>` | Conneg.`getEncodingPrefs()` Returns the enriched list of encoding preferences.

Method parameters in org.restlet.engine.util with type arguments of type Encoding
Modifier and Type | Method and Description
--- | ---
`float` | Conneg.`scoreEncodings(java.util.List<Encoding> encodings)` Scores encodings relatively to enriched client preferences.

### Uses of Encoding in org.restlet.representation

Methods in org.restlet.representation that return types with arguments of type Encoding
Modifier and Type | Method and Description
--- | ---
`java.util.List<Encoding>` | Variant.`getEncodings()` Returns the modifiable list of encodings applied to the entity-body.

Method parameters in org.restlet.representation with type arguments of type Encoding
Modifier and Type | Method and Description
--- | ---
`void` | Variant.`setEncodings(java.util.List<Encoding> encodings)` Sets the list of encodings applied to the entity-body. Note that when used with HTTP connectors, this property maps to the "Content-Encoding" header.

### Uses of Encoding in org.restlet.service

Methods in org.restlet.service that return Encoding
Modifier and Type | Method and Description
--- | ---
`Encoding` | MetadataService.`getDefaultEncoding()` Returns the default encoding for representations.
`Encoding` | MetadataService.`getEncoding(java.lang.String extension)` Returns the encoding associated to this extension.

Methods in org.restlet.service with parameters of type Encoding
Modifier and Type | Method and Description
--- | ---
`void` | MetadataService.`setDefaultEncoding(Encoding defaultEncoding)` Sets the default encoding for local representations.

### Uses of Encoding in org.restlet.util

Methods in org.restlet.util that return types with arguments of type Encoding
Modifier and Type | Method and Description
--- | ---
`java.util.List<Encoding>` | WrapperRepresentation.`getEncodings()`

Method parameters in org.restlet.util with type arguments of type Encoding
Modifier and Type | Method and Description
--- | ---
`void` | WrapperRepresentation.`setEncodings(java.util.List<Encoding> encodings)`