org.apache.xerces.impl.dv.util

Class HexBin

public final class HexBin extends Object

format validation This class encodes/decodes hexadecimal data

INTERNAL:

Usage of this class is not supported. It may be altered or removed at any time.

Version: $Id: HexBin.java,v 1.13 2004/10/14 15:20:18 mrglavas Exp $

Author: Jeffrey Rodriguez

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

Method Detail

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-2005 Apache XML Project. All Rights Reserved.