Enum GzipParameters.OS

java.lang.Object
java.lang.Enum<GzipParameters.OS>
kala.compress.compressors.gzip.GzipParameters.OS
All Implemented Interfaces:
Serializable, Comparable<GzipParameters.OS>, java.lang.constant.Constable
Enclosing class:
GzipParameters

public static enum GzipParameters.OS extends 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:
  • Enum Constant Details

  • 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

      public static GzipParameters.OS[] 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

      public static GzipParameters.OS valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • from

      public static GzipParameters.OS from(int code)
      Gets the GzipParameters.OS matching the given code.
      Parameters:
      code - an OS or UNKNOWN for no match.
      Returns:
      a GzipParameters.OS.
    • type

      public int type()
      Gets the OS type.
      Returns:
      the OS type.