- java.lang.Object
-
- java.lang.Enum<GzipParameters.OS>
-
- kala.compress.compressors.gzip.GzipParameters.OS
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GzipParameters.OS>
- Enclosing class:
- GzipParameters
public static enum GzipParameters.OS extends java.lang.Enum<GzipParameters.OS>
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:
- RFC 1952: GZIP File Format Specification - OS (Operating System)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACORN_RISCOS13: Acorn RISCOS.AMIGA1: Amiga.ATARI_TOS5: Atari TOS.CPM9: CP/M.FAT0: FAT filesystem (MS-DOS, OS/2, NT/Win32).HPFS6: HPFS filesystem (OS/2, NT).MACINTOSH7: Macintosh.NTFS11: NTFS filesystem (NT).QDOS12: QDOS.TOPS_2010: TOPS-20.UNIX3: Unix.UNKNOWN255: unknown.VM_CMS4: VM/CMS.VMS2: VMS (or OpenVMS).Z_SYSTEM8: Z-System.
-
Field Summary
Fields Modifier and Type Field Description private inttype
-
Constructor Summary
Constructors Modifier Constructor Description privateOS(int type)Constructs a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GzipParameters.OSfrom(int code)Gets theGzipParameters.OSmatching the given code.inttype()Gets the OS type.static GzipParameters.OSvalueOf(java.lang.String name)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 Detail
-
FAT
public static final GzipParameters.OS FAT
0: FAT filesystem (MS-DOS, OS/2, NT/Win32).
-
AMIGA
public static final GzipParameters.OS AMIGA
1: Amiga.
-
VMS
public static final GzipParameters.OS VMS
2: VMS (or OpenVMS).
-
UNIX
public static final GzipParameters.OS UNIX
3: Unix.
-
VM_CMS
public static final GzipParameters.OS VM_CMS
4: VM/CMS.
-
ATARI_TOS
public static final GzipParameters.OS ATARI_TOS
5: Atari TOS.
-
HPFS
public static final GzipParameters.OS HPFS
6: HPFS filesystem (OS/2, NT).
-
MACINTOSH
public static final GzipParameters.OS MACINTOSH
7: Macintosh.
-
Z_SYSTEM
public static final GzipParameters.OS Z_SYSTEM
8: Z-System.
-
CPM
public static final GzipParameters.OS CPM
9: CP/M.
-
TOPS_20
public static final GzipParameters.OS TOPS_20
10: TOPS-20.
-
NTFS
public static final GzipParameters.OS NTFS
11: NTFS filesystem (NT).
-
QDOS
public static final GzipParameters.OS QDOS
12: QDOS.
-
ACORN_RISCOS
public static final GzipParameters.OS ACORN_RISCOS
13: Acorn RISCOS.
-
UNKNOWN
public static final GzipParameters.OS UNKNOWN
255: unknown.
-
-
Method Detail
-
values
public static GzipParameters.OS[] 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 (GzipParameters.OS c : GzipParameters.OS.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GzipParameters.OS valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
from
public static GzipParameters.OS from(int code)
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.
-
-