public enum CompressionLevel extends Enum<CompressionLevel>
Enum Constant and Description |
---|
FAST
Level 3 Deflate compression
|
FASTER
Level 2 Deflate compression
|
FASTEST
Level 1 Deflate compression.
|
HIGHER
Level 6 Deflate compression
|
MAXIMUM
Level 7 Deflate compression
|
MEDIUM_FAST
Level 4 Deflate compression
|
NORMAL
Level 5 Deflate compression.
|
PRE_ULTRA
Level 8 Deflate compression
|
ULTRA
Level 9 Deflate compression.
|
Modifier and Type | Method and Description |
---|---|
int |
getLevel()
Get the Deflate compression level (0-9) for this CompressionLevel
|
static CompressionLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionLevel FASTEST
public static final CompressionLevel FASTER
public static final CompressionLevel FAST
public static final CompressionLevel MEDIUM_FAST
public static final CompressionLevel NORMAL
public static final CompressionLevel HIGHER
public static final CompressionLevel MAXIMUM
public static final CompressionLevel PRE_ULTRA
public static final CompressionLevel ULTRA
public static CompressionLevel[] values()
for (CompressionLevel c : CompressionLevel.values()) System.out.println(c);
public static CompressionLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getLevel()
Copyright © 2021. All rights reserved.