public class CompressionMethod extends Object
Modifier and Type | Field and Description |
---|---|
static CompressionMethod |
DEFLATE
The deflate compression method.
|
String |
label
The value description.
|
boolean |
valid
Whether the value is valid.
|
int |
value
The integer value for the enum instance.
|
Modifier | Constructor and Description |
---|---|
protected |
CompressionMethod(int value,
String label,
boolean valid)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static CompressionMethod |
fromValue(int n)
Returns the enumerated value object corresponding to the
specified integer value.
|
public static final CompressionMethod DEFLATE
public final int value
public final String label
public final boolean valid
protected CompressionMethod(int value, String label, boolean valid)
value
- The compression method value.label
- The name of the compression method.valid
- If it is a valid compression method.public static CompressionMethod 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.