com.caucho.util
Class Hex

java.lang.Object
  extended by com.caucho.util.Hex

public class Hex
extends java.lang.Object

hex decoding.


Constructor Summary
Hex()
           
 
Method Summary
static byte[] toBytes(java.lang.String hex)
          Convert hex to bytes
static java.lang.String toHex(byte[] bytes)
          Convert bytes to hex
static java.lang.String toHex(byte[] bytes, int offset, int len)
          Convert bytes to hex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hex

public Hex()
Method Detail

toHex

public static java.lang.String toHex(byte[] bytes)
Convert bytes to hex


toHex

public static java.lang.String toHex(byte[] bytes,
                                     int offset,
                                     int len)
Convert bytes to hex


toBytes

public static byte[] toBytes(java.lang.String hex)
Convert hex to bytes