Class Hexadecimal


  • public class Hexadecimal
    extends Object
    This class does some hexadecimal conversion operations.
    • Constructor Detail

      • Hexadecimal

        public Hexadecimal()
    • Method Detail

      • toHex

        public static String toHex​(byte[] input)
        This method converts a byte array into a lower case hexadecimal String.
        Parameters:
        input - The byte array to convert.
        Returns:
        The hexadecimal output String.
      • toByteArray

        public static byte[] toByteArray​(String input)
        This method converts a hexadecimal input String into an array of bytes.
        Parameters:
        input - The hexadecimal input String.
        Returns:
        The resulting byte array.