Liferay 7.0-ce-b4

com.liferay.portal.fabric.netty.fileserver
Enum CompressionLevel

java.lang.Object
  extended by java.lang.Enum<CompressionLevel>
      extended by com.liferay.portal.fabric.netty.fileserver.CompressionLevel
All Implemented Interfaces:
Serializable, Comparable<CompressionLevel>

public enum CompressionLevel
extends Enum<CompressionLevel>


Enum Constant Summary
BEST_COMPRESSION
           
BEST_SPEED
           
DEFAULT_COMPRESSION
           
LEVEL_2
           
LEVEL_3
           
LEVEL_4
           
LEVEL_5
           
LEVEL_6
           
LEVEL_7
           
LEVEL_8
           
NO_COMPRESSION
           
 
Method Summary
static CompressionLevel getCompressionLevel(int level)
           
 int getLevel()
           
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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()

Liferay 7.0-ce-b4