adams.core.io
Enum TarUtils.Compression

java.lang.Object
  extended by java.lang.Enum<TarUtils.Compression>
      extended by adams.core.io.TarUtils.Compression
All Implemented Interfaces:
Serializable, Comparable<TarUtils.Compression>
Enclosing class:
TarUtils

public static enum TarUtils.Compression
extends Enum<TarUtils.Compression>

The type of compression to use.

Version:
$Revision: 6358 $
Author:
fracpete (fracpete at waikato dot ac dot nz)

Enum Constant Summary
AUTO
          automatic.
BZIP2
          bzip2.
GZIP
          gzip.
NONE
          no compression.
 
Method Summary
static TarUtils.Compression valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TarUtils.Compression[] 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

AUTO

public static final TarUtils.Compression AUTO
automatic.


NONE

public static final TarUtils.Compression NONE
no compression.


GZIP

public static final TarUtils.Compression GZIP
gzip.


BZIP2

public static final TarUtils.Compression BZIP2
bzip2.

Method Detail

values

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

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

valueOf

public static TarUtils.Compression 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


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.