public class CompressionType extends Object
Modifier and Type | Field and Description |
---|---|
static CompressionType |
FASTEST_ALGORITHM
GZip extra flag value for fastest algorithm.
|
String |
label
The value description.
|
static CompressionType |
MAXIMUM_COMPRESSION
GZip extra flag value for maximum compression.
|
boolean |
valid
Whether the value is valid.
|
int |
value
The integer value for the enum instance.
|
Modifier | Constructor and Description |
---|---|
protected |
CompressionType(int value,
String label,
boolean valid)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static CompressionType |
fromValue(int n)
Returns the enumerated value object corresponding to the
specified integer value.
|
public static final CompressionType MAXIMUM_COMPRESSION
public static final CompressionType FASTEST_ALGORITHM
public final int value
public final String label
public final boolean valid
protected CompressionType(int value, String label, boolean valid)
value
- The compression type value.label
- The name of the compression type.valid
- If it is a valid compression type.public static CompressionType fromValue(int n)
n
- the integer value to map.n
is
one of the defined valid values.Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.