Class OperatingSystem
java.lang.Object
edu.harvard.hul.ois.jhove.module.gzip.OperatingSystem
Enumerated type for GZip supported operating systems.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OperatingSystemAcorn RISCOS.static final OperatingSystemAmiga.static final OperatingSystemAtari TOS.static final OperatingSystemCP/M.static final OperatingSystemThe FAT filesystem (MS-DOS, OS/2, NT/Win32).static final OperatingSystemHPFS filesystem (0S/2, NT).final StringThe value description.static final OperatingSystemMacintosh.static final OperatingSystemNTFS filesystem (NT).static final OperatingSystemQDOS.static final OperatingSystemTOPS-20.static final OperatingSystemUnix.static final OperatingSystemUnknown.final booleanWhether the value is valid.final intThe integer value for the enum instance.static final OperatingSystemVM/CMS.static final OperatingSystemVMS (or OpenVMS).static final OperatingSystemZ-System. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOperatingSystem(int value, String label, boolean valid) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic OperatingSystemfromValue(int n) Returns the enumerated value object corresponding to the specified integer value.
-
Field Details
-
FAT_FILESYSTEM
The FAT filesystem (MS-DOS, OS/2, NT/Win32). -
AMIGA
Amiga. -
VMS
VMS (or OpenVMS). -
UNIX
Unix. -
VM_CMS
VM/CMS. -
ATARI_TOS
Atari TOS. -
HPFS
HPFS filesystem (0S/2, NT). -
MACINTOSH
Macintosh. -
Z_SYSTEM
Z-System. -
CP_M
CP/M. -
TOPS_20
TOPS-20. -
NTFS
NTFS filesystem (NT). -
QDOS
QDOS. -
ACORN_RISCOS
Acorn RISCOS. -
UNKNOWN
Unknown. -
value
public final int valueThe integer value for the enum instance. -
label
The value description. -
valid
public final boolean validWhether the value is valid.
-
-
Constructor Details
-
OperatingSystem
Constructor.- Parameters:
value- The compression type value.label- The name of the compression type.valid- If it is a valid compression type.
-
-
Method Details
-
fromValue
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.
-