org.schmant.task.template.io.zip
Enum ZipCompressionMethod

java.lang.Object
  extended by java.lang.Enum<ZipCompressionMethod>
      extended by org.schmant.task.template.io.zip.ZipCompressionMethod
All Implemented Interfaces:
Serializable, Comparable<ZipCompressionMethod>

public enum ZipCompressionMethod
extends Enum<ZipCompressionMethod>

Different compression methods supported by Zip tasks.

Since:
0.5
Author:
Karl Gustafsson

Enum Constant Summary
DEFLATED
           
FILTERED
           
HUFFMAN_ONLY
           
NO_COMPRESSION
           
 
Method Summary
 int getIntValue()
          Get the integer value for the compression method, i.e.
 String toString()
           
static ZipCompressionMethod valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ZipCompressionMethod[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFLATED

public static final ZipCompressionMethod DEFLATED

FILTERED

public static final ZipCompressionMethod FILTERED

HUFFMAN_ONLY

public static final ZipCompressionMethod HUFFMAN_ONLY

NO_COMPRESSION

public static final ZipCompressionMethod NO_COMPRESSION
Method Detail

values

public static ZipCompressionMethod[] 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 (ZipCompressionMethod c : ZipCompressionMethod.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ZipCompressionMethod 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

getIntValue

public int getIntValue()
Get the integer value for the compression method, i.e. the integer value of the corresponding java.util.zip.Deflater constant.

Returns:
The integer value.

toString

public String toString()
Overrides:
toString in class Enum<ZipCompressionMethod>