Enum Class GzipParameters.OS

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

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

  • Method Details

    • values

      public static GzipParameters.OS[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GzipParameters.OS valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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.