Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.impl » util » [javadoc | source]
org.apache.xmlbeans.impl.util
public final class: HexBin [javadoc | source]
java.lang.Object
   org.apache.xmlbeans.impl.util.HexBin
format validation This class encodes/decodes hexadecimal data
Method from org.apache.xmlbeans.impl.util.HexBin Summary:
bytesToString,   decode,   decode,   encode,   encode,   isHex,   stringToBytes
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xmlbeans.impl.util.HexBin Detail:
 public static String bytesToString(byte[] binaryData) 
    Converts bytes to a hex string
 public static byte[] decode(byte[] binaryData) 
 public static String decode(String binaryData) 
    Decodes Hex data into octects
 public static byte[] encode(byte[] binaryData) 
    array of byte to encode
 public static String encode(String binaryData) 
    Encodes octects (using utf-8) into Hex data
 static boolean isHex(byte octect) 
    byte to be tested if it is Base64 alphabet
 public static byte[] stringToBytes(String hexEncoded) 
    Converts a hex string to a byte array.