org.apache.xerces.impl.dv.util

Class HexBin


public final class HexBin
extends java.lang.Object

format validation This class encodes/decodes hexadecimal data
Version:
$Id: HexBin.java 320108 2004-10-14 15:20:18Z mrglavas $
Author:
Jeffrey Rodriguez

Method Summary

static byte[]
decode(String encoded)
Decode hex string to a byte array
static String
encode(byte[] binaryData)
Encode a byte array to hex string

Method Details

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

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

Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.