Class HexBin


  • public final class HexBin
    extends Object
    format validation This class encodes/decodes hexadecimal data
    Version:
    $Id$
    Author:
    Jeffrey Rodriguez
    • Constructor Detail

      • HexBin

        public HexBin()
    • Method Detail

      • encode

        public static String encode​(byte[] binaryData)
        Encode a byte array to hex string
        Parameters:
        binaryData - array of byte to encode
        Returns:
        return encoded string
      • decode

        public static byte[] decode​(String encoded)
        Decode hex string to a byte array
        Parameters:
        encoded - encoded string
        Returns:
        return array of byte to encode