drools-eclipse/org.guvnor.eclipse.webdav/src/client/org/eclipse/webdav/internal/authentication/HexConverter.java
public static String toHex(byte[] arr) {
        StringBuffer buf = new StringBuffer();
        for (int i = 0; i < arr.length; ++i) {
            buf.append(Integer.toHexString((arr[i] >> 4) & 0x0f));
            buf.append(Integer.toHexString(arr[i] & 0x0f));
        }
        return buf.toString();
    }
public static String toHex(byte[] arr) {
        StringBuffer buf = new StringBuffer();
        for (int i = 0; i < arr.length; ++i) {
            buf.append(Integer.toHexString((arr[i] >> 4) & 0x0f));
            buf.append(Integer.toHexString(arr[i] & 0x0f));
        }
        return buf.toString();
    }
public static String toHex ( byte [ ] arr ) { StringBuffer buf = new StringBuffer ( ) ; for ( int i = 0 ; i < arr . length ; ++ i ) { buf . append ( Integer . toHexString ( ( arr [ i ] >> 4 ) & 0x0f ) ) ; buf . append ( Integer . toHexString ( arr [ i ] & 0x0f ) ) ; } return buf . toString ( ) ; }
Converts the given byte array to its equivalent hexadecimal string
and returns the result.
Converts the given byte array to its equivalent hexadecimal string and returns the result .