public class RepConversion
extends java.lang.Object
| Constructor and Description | 
|---|
RepConversion()  | 
| Modifier and Type | Method and Description | 
|---|---|
static byte | 
asciiHexToNibble(byte b)
Converting an ascii nibble in decimal ( [0-9a-f-A-F] should be in the
 hex range) to a 4 bit number which is the hex value (nibble). 
 | 
static void | 
bArray2nibbles(byte[] array,
              byte[] nibbles)
Byte array to nibbles. 
 | 
static java.lang.String | 
bArray2String(byte[] array)
Byte array to String. 
 | 
static byte[] | 
convertHexStringToByte(java.lang.String refString)  | 
static byte[] | 
nibbles2bArray(byte[] nibbles)
Nibbles to byte array. 
 | 
static byte | 
nibbleToHex(byte nibble)
nibble To hex. 
 | 
static void | 
printInHex(byte b)
print byte in Hex. 
 | 
static void | 
printInHex(int value)  | 
static void | 
printInHex(long value)  | 
static void | 
printInHex(short value)  | 
static byte[] | 
toHex(int value)  | 
static byte[] | 
toHex(long value)  | 
static byte[] | 
toHex(short value)  | 
public static void printInHex(byte b)
b - byte to convert to hexpublic static byte nibbleToHex(byte nibble)
nibble - Byte with a 4 bit value to convert to Hex.public static byte asciiHexToNibble(byte b)
nibble of the result
b - byte with a hex value to convert to decimalpublic static void bArray2nibbles(byte[] array,
                                  byte[] nibbles)
array - array of bytes to convertnibbles - array where the nibbles will be storedpublic static java.lang.String bArray2String(byte[] array)
array - array of bytes to convertpublic static byte[] nibbles2bArray(byte[] nibbles)
nibbles - array of nibblespublic static void printInHex(long value)
public static void printInHex(int value)
public static void printInHex(short value)
public static byte[] toHex(long value)
public static byte[] toHex(int value)
public static byte[] toHex(short value)
public static byte[] convertHexStringToByte(java.lang.String refString)