Class HexBin
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dv.util.HexBin
-
public final class HexBin extends Object
format validation This class encodes/decodes hexadecimal data- Version:
- $Id$
- Author:
- Jeffrey Rodriguez
-
-
Constructor Summary
Constructors Constructor Description HexBin()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
decode(String encoded)
Decode hex string to a byte arraystatic String
encode(byte[] binaryData)
Encode a byte array to hex string
-
-
-
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
-
-