- All Implemented Interfaces:
Serializable,Comparable<GzipParameters.OS>,java.lang.constant.Constable
- Enclosing class:
GzipParameters
The OS type.
- 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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
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. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GzipParameters.OSfrom(int code) Gets theGzipParameters.OSmatching the given code.inttype()Gets the OS type.static GzipParameters.OSReturns 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
-
FAT
0: FAT filesystem (MS-DOS, OS/2, NT/Win32). -
AMIGA
1: Amiga. -
VMS
2: VMS (or OpenVMS). -
UNIX
3: Unix. -
VM_CMS
4: VM/CMS. -
ATARI_TOS
5: Atari TOS. -
HPFS
6: HPFS filesystem (OS/2, NT). -
MACINTOSH
7: Macintosh. -
Z_SYSTEM
8: Z-System. -
CPM
9: CP/M. -
TOPS_20
10: TOPS-20. -
NTFS
11: NTFS filesystem (NT). -
QDOS
12: QDOS. -
ACORN_RISCOS
13: Acorn RISCOS. -
UNKNOWN
255: unknown.
-
-
Field Details
-
type
private final int type
-
-
Constructor Details
-
OS
private OS(int type) Constructs a new instance.- Parameters:
type- the OS type.
-
-
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.OSmatching the given code.- Parameters:
code- an OS orUNKNOWNfor no match.- Returns:
- a
GzipParameters.OS.
-
type
public int type()Gets the OS type.- Returns:
- the OS type.
-