java.lang.Object
java.lang.Enum<Encoding>
com.shinyhut.vernacular.protocol.messages.Encoding
All Implemented Interfaces:
Serializable, Comparable<Encoding>, java.lang.constant.Constable

public enum Encoding extends Enum<Encoding>
  • Enum Constant Details

    • RAW

      public static final Encoding RAW
    • COPYRECT

      public static final Encoding COPYRECT
    • RRE

      public static final Encoding RRE
    • HEXTILE

      public static final Encoding HEXTILE
    • DESKTOP_SIZE

      public static final Encoding DESKTOP_SIZE
  • Field Details

    • code

      private int code
  • Constructor Details

    • Encoding

      private Encoding(int code)
  • Method Details

    • values

      public static Encoding[] 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 Encoding 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
    • getCode

      public int getCode()
    • resolve

      public static Encoding resolve(int code) throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException