org.sandev.basics.util
Class Hexifier

java.lang.Object
  extended by org.sandev.basics.util.Hexifier

public class Hexifier
extends java.lang.Object

An alternative to base64 encoding in some cases.


Constructor Summary
Hexifier()
           
 
Method Summary
static java.lang.String byte2Hex(byte[] bytes)
          Convert a byte array to a hexified string.
static byte[] hex2Byte(java.lang.String str)
          Convert a hexified string into a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hexifier

public Hexifier()
Method Detail

byte2Hex

public static java.lang.String byte2Hex(byte[] bytes)
Convert a byte array to a hexified string.


hex2Byte

public static byte[] hex2Byte(java.lang.String str)
Convert a hexified string into a byte array.