public enum CompressionType extends java.lang.Enum<CompressionType>
For color or grayscale images: Flate, JPEG or JPEG2000 may be selected. For black and white images: Flate, JBIG2, CCITTG3, or CCITTG4 may be selected.
| Enum Constant and Description |
|---|
CCITTG_3COMPRESSION
Recompress with CCITTG3.
|
CCITTG_4COMPRESSION
Recompress with CCITTG4.
|
FLATE_COMPRESSION
Recompress with Flate compression.
|
FLATE_JPEG_COMPRESSION
Recompress with FlateJpeg.
|
JBIG_2COMPRESSION
Recompress with JBIG2.
|
JPEG_2000_COMPRESSION
Recompress using JPEG2000.
|
JPEGCOMPRESSION
Recompress with JPEG.
|
NO_COMPRESSION
Do not replace compression type.
|
SAME_COMPRESSION
Recompress with the same compression.
|
| Modifier and Type | Method and Description |
|---|---|
static CompressionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CompressionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionType NO_COMPRESSION
public static final CompressionType SAME_COMPRESSION
public static final CompressionType FLATE_COMPRESSION
public static final CompressionType JPEGCOMPRESSION
public static final CompressionType JPEG_2000_COMPRESSION
public static final CompressionType JBIG_2COMPRESSION
public static final CompressionType CCITTG_4COMPRESSION
public static final CompressionType CCITTG_3COMPRESSION
public static final CompressionType FLATE_JPEG_COMPRESSION
public static CompressionType[] values()
for (CompressionType c : CompressionType.values()) System.out.println(c);
public static CompressionType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null