Class CompressionMethod
java.lang.Object
edu.harvard.hul.ois.jhove.module.gzip.CompressionMethod
Enumerated type for GZip supported compression methods.
Converted from JHOVE 2.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCompressionMethod(int value, String label, boolean valid) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic CompressionMethodfromValue(int n) Returns the enumerated value object corresponding to the specified integer value.
-
Field Details
-
DEFLATE
The deflate compression method. -
value
public final int valueThe integer value for the enum instance. -
label
The value description. -
valid
public final boolean validWhether the value is valid.
-
-
Constructor Details
-
CompressionMethod
Constructor.- Parameters:
value- The compression method value.label- The name of the compression method.valid- If it is a valid compression method.
-
-
Method Details
-
fromValue
Returns the enumerated value object corresponding to the specified integer value. If the integer value is unknown, an instance marked as not valid is returned.- Parameters:
n- the integer value to map.- Returns:
- a compression method object, valid if
nis one of the defined valid values.
-