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 |
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(String name)
Constructor.
|
Encoding(String name,
String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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(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 FREEMARKER
public static final Encoding GZIP
public static final Encoding IDENTITY
public static final Encoding VELOCITY
public static final Encoding ZIP
public Encoding(String name)
name
- The name.public static Encoding valueOf(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–2014. All rights reserved.