org.enhydra.apache.xerces.utils
Class HexBin

java.lang.Object
  |
  +--org.enhydra.apache.xerces.utils.HexBin

public final class HexBin
extends java.lang.Object

format validation This class encodes/decodes hexadecimal data

Version:
$Id: HexBin.java,v 1.1.1.1 2003/03/10 16:34:39 taweili Exp $
Author:
Jeffrey Rodriguez

Constructor Summary
HexBin()
           
 
Method Summary
static byte[] decode(byte[] binaryData)
           
static byte[] encode(byte[] binaryData)
          array of byte to encode
static int getDecodedDataLength(byte[] hexData)
           
(package private) static boolean isArrayByteHex(byte[] arrayOctect)
          Array of bytes to check against Hex Table
(package private) static boolean isHex(byte octect)
          byte to be tested if it is Base64 alphabet
static boolean isHex(java.lang.String isValidString)
           
 
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

static boolean isHex(byte octect)
byte to be tested if it is Base64 alphabet

Parameters:
octect -
Returns:

isArrayByteHex

static boolean isArrayByteHex(byte[] arrayOctect)
Array of bytes to check against Hex Table

Parameters:
arrayOctect -
Returns:

isHex

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

encode

public static byte[] encode(byte[] binaryData)
array of byte to encode

Parameters:
binaryData -
Returns:
return encode binary array

decode

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

getDecodedDataLength

public static int getDecodedDataLength(byte[] hexData)


Copyright © 1999 The Apache Software Foundation. All Rights reserved.