Enum Base16Lower

java.lang.Object
java.lang.Enum<Base16Lower>
com.amazonaws.util.Base16Lower
All Implemented Interfaces:
Serializable, Comparable<Base16Lower>, java.lang.constant.Constable

public enum Base16Lower extends Enum<Base16Lower>
A Base 16 codec API, which encodes into hex string in lower case. See http://www.ietf.org/rfc/rfc4648.txt
Author:
Hanson Char
  • Method Details

    • values

      public static Base16Lower[] 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 Base16Lower 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
    • encodeAsString

      public static String encodeAsString(byte... bytes)
      Returns a base 16 encoded string (in lower case) of the given bytes.
    • encode

      public static byte[] encode(byte[] bytes)
      Returns a base 16 encoded byte array of the given bytes.
    • decode

      public static byte[] decode(String b16)
      Decodes the given base 16 encoded string, skipping carriage returns, line feeds and spaces as needed.
    • decode

      public static byte[] decode(byte[] b16)
      Decodes the given base 16 encoded bytes.