Enum Class Coding

java.lang.Object
java.lang.Enum<Coding>
htmlcompiler.tools.Coding
All Implemented Interfaces:
Serializable, Comparable<Coding>, Constable

public enum Coding extends Enum<Coding>
  • Method Details

    • values

      public static Coding[] 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 Coding 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
    • sha384

      public static byte[] sha384(byte[] data) throws NoSuchAlgorithmException
      Throws:
      NoSuchAlgorithmException
    • encodeBase64

      public static String encodeBase64(byte[] data)
    • sha256

      public static byte[] sha256(String data, Charset charset)
    • encodeHex

      public static String encodeHex(byte[] bytes)