org.enhydra.apache.xerces.utils
Class HexBin
java.lang.Object
|
+--org.enhydra.apache.xerces.utils.HexBin
- public final class HexBin
- extends Object
format validation
This class encodes/decodes hexadecimal data
- Version:
- $Id: HexBin.java,v 1.2 2005/01/26 08:28:44 jkjome Exp $
- Author:
- Jeffrey Rodriguez
Method Summary |
(package private) static void |
()
|
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(String isValidString)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HexBin
public HexBin()
static void ()
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(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.