Enum GzipParameters.OS
- All Implemented Interfaces:
Serializable
,Comparable<GzipParameters.OS>
- Enclosing class:
GzipParameters
Enumerates OS types.
- 0 - FAT filesystem (MS-DOS, OS/2, NT/Win32)
- 1 - Amiga
- 2 - VMS (or OpenVMS)
- 3 - Unix
- 4 - VM/CMS
- 5 - Atari TOS
- 6 - HPFS filesystem (OS/2, NT)
- 7 - Macintosh
- 8 - Z-System
- 9 - CP/M
- 10 - TOPS-20
- 11 - NTFS filesystem (NT)
- 12 - QDOS
- 13 - Acorn RISCOS
- 255 - unknown
- Since:
- 1.28.0
- See Also:
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription13: Acorn RISCOS.1: Amiga.5: Atari TOS.9: CP/M.0: FAT filesystem (MS-DOS, OS/2, NT/Win32).6: HPFS filesystem (OS/2, NT).7: Macintosh.11: NTFS filesystem (NT).12: QDOS.10: TOPS-20.3: Unix.255: unknown.4: VM/CMS.2: VMS (or OpenVMS).8: Z-System. -
Method Summary
Modifier and TypeMethodDescriptionstatic GzipParameters.OS
from
(int code) Gets theGzipParameters.OS
matching the given code.int
type()
Gets the OS type.static GzipParameters.OS
Returns the enum constant of this type with the specified name.static GzipParameters.OS[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACORN_RISCOS
13: Acorn RISCOS. -
AMIGA
1: Amiga. -
ATARI_TOS
5: Atari TOS. -
CPM
9: CP/M. -
FAT
0: FAT filesystem (MS-DOS, OS/2, NT/Win32). -
HPFS
6: HPFS filesystem (OS/2, NT). -
MACINTOSH
7: Macintosh. -
NTFS
11: NTFS filesystem (NT). -
QDOS
12: QDOS. -
TOPS_20
10: TOPS-20. -
UNIX
3: Unix. -
UNKNOWN
255: unknown. -
VM_CMS
4: VM/CMS. -
VMS
2: VMS (or OpenVMS). -
Z_SYSTEM
8: Z-System.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
from
Gets theGzipParameters.OS
matching the given code.- Parameters:
code
- an OS orUNKNOWN
for no match.- Returns:
- a
GzipParameters.OS
.
-
type
Gets the OS type.- Returns:
- the OS type.
-