src/java/fr/jayasoft/ivy/util/ChecksumHelper.java
/**
	 * Convert a byte[] array to readable string format. This makes the "hex" readable!
	 * @return result String buffer in String format 
	 * @param in byte[] buffer to convert to string format
	 */
Convert a byte[] array to readable string format. This makes the "hex" readable.
@return result String buffer in String format
@param in byte[] buffer to convert to string format
Convert a byte [] array to readable string format . This makes the " hex " readable . @return result String buffer in String format @param in byte [] buffer to convert to string format
public static String byteArrayToHexString(byte in[]) {
        byte ch = 0x00;
        if (in == null || in.length <= 0) {
            return null;
        }
        StringBuffer out = new StringBuffer(in.length * 2);
        for (int i = 0; i < in.length; i++) {
            ch = (byte) (in[i] & 0xF0); 
            ch = (byte) (ch >>> 4); 
            ch = (byte) (ch & 0x0F); 
            out.append(CHARS[ (int) ch]); 
            ch = (byte) (in[i] & 0x0F); 
            out.append(CHARS[ (int) ch]); 
        }
        return out.toString();
    }
public static String byteArrayToHexString ( byte in [ ] ) { byte ch = 0x00 ; if ( in == null || in . length <= 0 ) { return null ; } StringBuffer out = new StringBuffer ( in . length * 2 ) ; for ( int i = 0 ; i < in . length ; i ++ ) { ch = ( byte ) ( in [ i ] & 0xF0 ) ; ch = ( byte ) ( ch >>> 4 ) ; ch = ( byte ) ( ch & 0x0F ) ; out . append ( CHARS [ ( int ) ch ] ) ; ch = ( byte ) ( in [ i ] & 0x0F ) ; out . append ( CHARS [ ( int ) ch ] ) ; } return out . toString ( ) ; }
Convert a byte[] array to readable string format.
Convert a byte [] array to readable string format .
// Strip off high nibble
 // shift the bits down
 // must do this is high order bit is on!
 // convert the nibble to a String Character
 // Strip off low nibble 
 // convert the nibble to a String Character
