Enum CompressionValue
- All Implemented Interfaces:
Serializable
,Comparable<CompressionValue>
,java.lang.constant.Constable
Enumerates the possible compression values for TIFF images.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDEFLATE lossless compression (also known as "Zip-in-TIFF").Modified Huffman Compression (CCITT Group 3 1D facsimile compression).CCITT T.4 bilevel compression (CCITT Group 3 2D facsimile compression).CCITT T.6 bilevel compression (CCITT Group 4 facsimile compression).Code for original JPEG-in-TIFF compression which has been depricated (for many good reasons) in favor of Tech Note 2 JPEG compression (compression scheme 7).JPEG-in-TIFF compression.LZW compression.No compression.Byte-oriented run-length encoding "PackBits" compression. -
Method Summary
Modifier and TypeMethodDescriptionstatic CompressionValue
Gets the compression value given the name of the compression type.static CompressionValue
Returns the enum constant of this type with the specified name.static CompressionValue[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
No compression. -
GROUP3_1D
Modified Huffman Compression (CCITT Group 3 1D facsimile compression).Not currently supported.
-
GROUP3_2D
CCITT T.4 bilevel compression (CCITT Group 3 2D facsimile compression).Not currently supported.
-
GROUP4
CCITT T.6 bilevel compression (CCITT Group 4 facsimile compression).Not currently supported.
-
LZW
LZW compression.Not supported.
-
JPEG_BROKEN
Code for original JPEG-in-TIFF compression which has been depricated (for many good reasons) in favor of Tech Note 2 JPEG compression (compression scheme 7).Not supported.
-
JPEG_TTN2
JPEG-in-TIFF compression. -
PACKBITS
Byte-oriented run-length encoding "PackBits" compression. -
DEFLATE
DEFLATE lossless compression (also known as "Zip-in-TIFF").
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
Gets the compression value given the name of the compression type.- Parameters:
name
- the compression name- Returns:
- the compression value
-