org.at4j.zip
Enum ZipVersionMadeBy

java.lang.Object
  extended by java.lang.Enum<ZipVersionMadeBy>
      extended by org.at4j.zip.ZipVersionMadeBy
All Implemented Interfaces:
Serializable, Comparable<ZipVersionMadeBy>

public enum ZipVersionMadeBy
extends Enum<ZipVersionMadeBy>

This is an enumeration over the different Zip implementations that can be used to create Zip files. It uses Info-Zip's code assignment rather than PKWare's.

Since:
1.0
Author:
Karl Gustafsson

Enum Constant Summary
ACORN_RISC
           
ALT_MVS
           
AMIGA
           
ATARI_ST
           
ATHEOS
           
BEOS
           
CPM
           
MACINTOSH
           
MSDOS
           
OPENVMS
           
OS2_HPFS
           
OSX
           
SMS_QDOS
           
TANDEM
           
THEOS
           
UNIX
           
VFAT
           
VMCMS
           
WINDOWS_NTFS
           
Z_SYSTEM
           
 
Method Summary
 UnsignedByte getCode()
          Get the code associated with this Zip version made by enum constant.
 String toString()
           
static ZipVersionMadeBy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ZipVersionMadeBy valueOf(UnsignedByte code)
          Get the Zip version made by enum constant that corresponds to the code.
static ZipVersionMadeBy[] 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

MSDOS

public static final ZipVersionMadeBy MSDOS

AMIGA

public static final ZipVersionMadeBy AMIGA

OPENVMS

public static final ZipVersionMadeBy OPENVMS

UNIX

public static final ZipVersionMadeBy UNIX

VMCMS

public static final ZipVersionMadeBy VMCMS

ATARI_ST

public static final ZipVersionMadeBy ATARI_ST

OS2_HPFS

public static final ZipVersionMadeBy OS2_HPFS

MACINTOSH

public static final ZipVersionMadeBy MACINTOSH

Z_SYSTEM

public static final ZipVersionMadeBy Z_SYSTEM

CPM

public static final ZipVersionMadeBy CPM

WINDOWS_NTFS

public static final ZipVersionMadeBy WINDOWS_NTFS

SMS_QDOS

public static final ZipVersionMadeBy SMS_QDOS

ACORN_RISC

public static final ZipVersionMadeBy ACORN_RISC

VFAT

public static final ZipVersionMadeBy VFAT

ALT_MVS

public static final ZipVersionMadeBy ALT_MVS

BEOS

public static final ZipVersionMadeBy BEOS

TANDEM

public static final ZipVersionMadeBy TANDEM

THEOS

public static final ZipVersionMadeBy THEOS

OSX

public static final ZipVersionMadeBy OSX

ATHEOS

public static final ZipVersionMadeBy ATHEOS
Method Detail

values

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

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

valueOf

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

getCode

public UnsignedByte getCode()
Get the code associated with this Zip version made by enum constant. The code is used to represent this version in the Zip file header.

Returns:
The code associated with this Zip version made by enum constant.

valueOf

public static ZipVersionMadeBy valueOf(UnsignedByte code)
                                throws IllegalArgumentException
Get the Zip version made by enum constant that corresponds to the code.

Parameters:
code - The version made by code.
Returns:
The Zip version made by enum constant that corresponds to the code.
Throws:
IllegalArgumentException - If there is no Zip version made by enum constant associated with the supplied code.

toString

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