com.liferay.portal.fabric.netty.fileserver
Enum CompressionLevel
java.lang.Object
java.lang.Enum<CompressionLevel>
com.liferay.portal.fabric.netty.fileserver.CompressionLevel
- All Implemented Interfaces:
- Serializable, Comparable<CompressionLevel>
public enum CompressionLevel
- extends Enum<CompressionLevel>
BEST_COMPRESSION
public static final CompressionLevel BEST_COMPRESSION
BEST_SPEED
public static final CompressionLevel BEST_SPEED
DEFAULT_COMPRESSION
public static final CompressionLevel DEFAULT_COMPRESSION
LEVEL_2
public static final CompressionLevel LEVEL_2
LEVEL_3
public static final CompressionLevel LEVEL_3
LEVEL_4
public static final CompressionLevel LEVEL_4
LEVEL_5
public static final CompressionLevel LEVEL_5
LEVEL_6
public static final CompressionLevel LEVEL_6
LEVEL_7
public static final CompressionLevel LEVEL_7
LEVEL_8
public static final CompressionLevel LEVEL_8
NO_COMPRESSION
public static final CompressionLevel NO_COMPRESSION
values
public static CompressionLevel[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (CompressionLevel c : CompressionLevel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CompressionLevel valueOf(String name)
- 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 name
NullPointerException - if the argument is null
getCompressionLevel
public static CompressionLevel getCompressionLevel(int level)
getLevel
public int getLevel()