Class OperatingSystem

java.lang.Object
edu.harvard.hul.ois.jhove.module.gzip.OperatingSystem

public final class OperatingSystem extends Object
Enumerated type for GZip supported operating systems.
  • Field Details

    • FAT_FILESYSTEM

      public static final OperatingSystem FAT_FILESYSTEM
      The FAT filesystem (MS-DOS, OS/2, NT/Win32).
    • AMIGA

      public static final OperatingSystem AMIGA
      Amiga.
    • VMS

      public static final OperatingSystem VMS
      VMS (or OpenVMS).
    • UNIX

      public static final OperatingSystem UNIX
      Unix.
    • VM_CMS

      public static final OperatingSystem VM_CMS
      VM/CMS.
    • ATARI_TOS

      public static final OperatingSystem ATARI_TOS
      Atari TOS.
    • HPFS

      public static final OperatingSystem HPFS
      HPFS filesystem (0S/2, NT).
    • MACINTOSH

      public static final OperatingSystem MACINTOSH
      Macintosh.
    • Z_SYSTEM

      public static final OperatingSystem Z_SYSTEM
      Z-System.
    • CP_M

      public static final OperatingSystem CP_M
      CP/M.
    • TOPS_20

      public static final OperatingSystem TOPS_20
      TOPS-20.
    • NTFS

      public static final OperatingSystem NTFS
      NTFS filesystem (NT).
    • QDOS

      public static final OperatingSystem QDOS
      QDOS.
    • ACORN_RISCOS

      public static final OperatingSystem ACORN_RISCOS
      Acorn RISCOS.
    • UNKNOWN

      public static final OperatingSystem UNKNOWN
      Unknown.
    • value

      public final int value
      The integer value for the enum instance.
    • label

      public final String label
      The value description.
    • valid

      public final boolean valid
      Whether the value is valid.
  • Constructor Details

    • OperatingSystem

      protected OperatingSystem(int value, String label, boolean valid)
      Constructor.
      Parameters:
      value - The compression type value.
      label - The name of the compression type.
      valid - If it is a valid compression type.
  • Method Details

    • fromValue

      public static OperatingSystem fromValue(int n)
      Returns the enumerated value object corresponding to the specified integer value. If the integer value is unknown, an instance marked as not valid is returned.
      Parameters:
      n - the integer value to map.
      Returns:
      a operating system object, valid if n is one of the defined valid values.