Home » apache-tomcat-6.0.26-src » org.apache » tomcat » util » [javadoc | source]
org.apache.tomcat.util
public final class: HexUtils [javadoc | source]
java.lang.Object
   org.apache.tomcat.util.HexUtils
Library of utility methods useful in dealing with converting byte arrays to and from strings of hexadecimal digits.
Field Summary
public static final  int[] DEC     
Method from org.apache.tomcat.util.HexUtils Summary:
convert,   convert,   convert2Int
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tomcat.util.HexUtils Detail:
 public static byte[] convert(String digits) 
    Convert a String of hexadecimal digits into the corresponding byte array by encoding each two hexadecimal digits as a byte.
 public static String convert(byte[] bytes) 
    Convert a byte array into a printable format containing a String of hexadecimal digit characters (two per byte).
 public static int convert2Int(byte[] hex) 
    Convert 4 hex digits to an int, and return the number of converted bytes.