Enum ZipMethod

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ZipMethod>

    public enum ZipMethod
    extends java.lang.Enum<ZipMethod>
    List of known compression methods Many of these methods are currently not supported by commons compress
    Since:
    1.5
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int code  
      private static java.util.Map<java.lang.Integer,​ZipMethod> codeToEnum  
      (package private) static int UNKNOWN_CODE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ZipMethod()  
      private ZipMethod​(int code)
      private constructor for enum style class.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCode()
      the code of the compression method.
      static ZipMethod getMethodByCode​(int code)
      returns the ZipMethod for the given code or null if the method is not known.
      static ZipMethod valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ZipMethod[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait