Class OperatingSystem
- java.lang.Object
-
- edu.harvard.hul.ois.jhove.module.gzip.OperatingSystem
-
public final class OperatingSystem extends Object
Enumerated type for GZip supported operating systems.
-
-
Field Summary
Fields Modifier and Type Field Description static OperatingSystemACORN_RISCOSAcorn RISCOS.static OperatingSystemAMIGAAmiga.static OperatingSystemATARI_TOSAtari TOS.static OperatingSystemCP_MCP/M.static OperatingSystemFAT_FILESYSTEMThe FAT filesystem (MS-DOS, OS/2, NT/Win32).static OperatingSystemHPFSHPFS filesystem (0S/2, NT).StringlabelThe value description.static OperatingSystemMACINTOSHMacintosh.static OperatingSystemNTFSNTFS filesystem (NT).static OperatingSystemQDOSQDOS.static OperatingSystemTOPS_20TOPS-20.static OperatingSystemUNIXUnix.static OperatingSystemUNKNOWNUnknown.booleanvalidWhether the value is valid.intvalueThe integer value for the enum instance.static OperatingSystemVM_CMSVM/CMS.static OperatingSystemVMSVMS (or OpenVMS).static OperatingSystemZ_SYSTEMZ-System.
-
Constructor Summary
Constructors Modifier Constructor Description protectedOperatingSystem(int value, String label, boolean valid)Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OperatingSystemfromValue(int n)Returns the enumerated value object corresponding to the specified integer value.
-
-
-
Field Detail
-
FAT_FILESYSTEM
public static final OperatingSystem FAT_FILESYSTEM
The FAT filesystem (MS-DOS, OS/2, NT/Win32).
-
AMIGA
public static final OperatingSystem AMIGA
Amiga.
-
VMS
public static final OperatingSystem VMS
VMS (or OpenVMS).
-
UNIX
public static final OperatingSystem UNIX
Unix.
-
VM_CMS
public static final OperatingSystem VM_CMS
VM/CMS.
-
ATARI_TOS
public static final OperatingSystem ATARI_TOS
Atari TOS.
-
HPFS
public static final OperatingSystem HPFS
HPFS filesystem (0S/2, NT).
-
MACINTOSH
public static final OperatingSystem MACINTOSH
Macintosh.
-
Z_SYSTEM
public static final OperatingSystem Z_SYSTEM
Z-System.
-
CP_M
public static final OperatingSystem CP_M
CP/M.
-
TOPS_20
public static final OperatingSystem TOPS_20
TOPS-20.
-
NTFS
public static final OperatingSystem NTFS
NTFS filesystem (NT).
-
QDOS
public static final OperatingSystem QDOS
QDOS.
-
ACORN_RISCOS
public static final OperatingSystem ACORN_RISCOS
Acorn RISCOS.
-
UNKNOWN
public static final OperatingSystem UNKNOWN
Unknown.
-
value
public final int value
The integer value for the enum instance.
-
label
public final String label
The value description.
-
valid
public final boolean valid
Whether the value is valid.
-
-
Constructor Detail
-
OperatingSystem
protected OperatingSystem(int value, String label, boolean valid)Constructor.- Parameters:
value- The compression type value.label- The name of the compression type.valid- If it is a valid compression type.
-
-
Method Detail
-
fromValue
public static OperatingSystem fromValue(int n)
Returns the enumerated value object corresponding to the specified integer value. If the integer value is unknown, an instance marked as not valid is returned.- Parameters:
n- the integer value to map.- Returns:
- a operating system object, valid if
nis one of the defined valid values.
-
-