utils
Class ByteUtil

java.lang.Object
  extended by utils.ByteUtil

public class ByteUtil
extends java.lang.Object


Constructor Summary
ByteUtil()
           
 
Method Summary
static java.lang.String getHex(byte b)
           
static java.lang.String getHex(byte[] b)
          Encode a byte array into a hexidecimal String
static void main(java.lang.String[] args)
           
static void printToDecimal(byte b)
           
static void printToHex(byte b)
           
static void printToOctal(byte b)
           
static void testGetHex()
           
static int toInt(byte b)
           
static java.lang.String toString(byte b)
           
static java.lang.String toString(byte b, int radix)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteUtil

public ByteUtil()
Method Detail

printToDecimal

public static void printToDecimal(byte b)

toInt

public static int toInt(byte b)

toString

public static java.lang.String toString(byte b,
                                        int radix)

toString

public static java.lang.String toString(byte b)

printToHex

public static void printToHex(byte b)

main

public static void main(java.lang.String[] args)

testGetHex

public static void testGetHex()

getHex

public static java.lang.String getHex(byte[] b)
Encode a byte array into a hexidecimal String

Parameters:
b -
Returns:

getHex

public static java.lang.String getHex(byte b)

printToOctal

public static void printToOctal(byte b)