public final class Encoding extends Metadata
Modifier and Type | Field and Description |
---|---|
static Encoding |
ALL
All encodings acceptable.
|
static Encoding |
COMPRESS
The common Unix file compression.
|
static Encoding |
DEFLATE
The zlib format defined by RFC 1950 and 1951.
|
static Encoding |
DEFLATE_NOWRAP
The zlib format defined by RFC 1950 and 1951, without wrapping.
|
static Encoding |
FREEMARKER
The FreeMarker encoding.
|
static Encoding |
GZIP
The GNU Zip encoding.
|
static Encoding |
IDENTITY
The default (identity) encoding.
|
static Encoding |
VELOCITY
The Velocity encoding.
|
static Encoding |
ZIP
The Info-Zip encoding.
|
Constructor and Description |
---|
Encoding(java.lang.String name)
Constructor.
|
Encoding(java.lang.String name,
java.lang.String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
Metadata |
getParent()
Returns the parent metadata if available or null.
|
int |
hashCode() |
boolean |
includes(Metadata included)
Indicates if a given encoding is included in the current one.
|
static Encoding |
valueOf(java.lang.String name)
Returns the encoding associated to a name.
|
getDescription, getName, isCompatible, toString
public static final Encoding ALL
public static final Encoding COMPRESS
public static final Encoding DEFLATE
public static final Encoding DEFLATE_NOWRAP
public static final Encoding FREEMARKER
public static final Encoding GZIP
public static final Encoding IDENTITY
public static final Encoding VELOCITY
public static final Encoding ZIP
public Encoding(java.lang.String name)
name
- The name.public Encoding(java.lang.String name, java.lang.String description)
name
- The name.description
- The description.public static Encoding valueOf(java.lang.String name)
name
- The name.public Metadata getParent()
Metadata
public boolean includes(Metadata included)
Examples:
includes
in class Metadata
included
- The encoding to test for inclusion.Metadata.isCompatible(Metadata)
Copyright © 2005-2024 Restlet.