public static String toHex ( byte b ) { final char [ ] string = { hexDigits [ ( b >> 4 ) & 0x0f ] , hexDigits [ b & 0x0f ] } ; return new String ( string ) ; }
Converts the specified byte value to a two digit hex string .