com.verisign.epp.util

## Class HexBin

- java.lang.Object
- - com.verisign.epp.util.HexBin

-     public final class HexBin
      extends java.lang.Object

  format validation This class encodes/decodes hexadecimal data

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `HexBin()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static byte[]` | `decode(byte[] aHexData)` Decode Hex data to binary data
    `static byte[]` | `encode(byte[] aBinaryData)` Encode binary data to Hex
    `static int` | `getDecodedDataLength(byte[] aHexData)` Get length length of the Hex data
    `static boolean` | `isHex(java.lang.String isValidString)` DOCUMENT ME!

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### HexBin

          public HexBin()

  - ### Method Detail

    - #### isHex

          public static boolean isHex(java.lang.String isValidString)

      DOCUMENT ME!
      Parameters:
        `isValidString` - DOCUMENT ME!
      Returns:
        DOCUMENT ME!

    - #### encode

          public static byte[] encode(byte[] aBinaryData)

      Encode binary data to Hex
      Parameters:
        `aBinaryData` - Binary data to Hex encode
      Returns:
        return Hex encoded array

    - #### decode

          public static byte[] decode(byte[] aHexData)

      Decode Hex data to binary data
      Parameters:
        `aHexData` - Hex data to Hex decode
      Returns:
        return Hex decoded binary data

    - #### getDecodedDataLength

          public static int getDecodedDataLength(byte[] aHexData)

      Get length length of the Hex data
      Parameters:
        `aHexData` - DOCUMENT ME!
      Returns:
        Length of Hex data if is Hex data; `-1` otherwise.