private static void byte2hex(byte b,StringBuffer buf){
  int high=((b & 0xf0) >> 4);
  int low=(b & 0x0f);
  buf.append(HEX_DIGITS[high]);
  buf.append(HEX_DIGITS[low]);
}

private static void byte2hex ( byte b , StringBuffer buf ) { int high = ( ( b & 0xf0 ) > > 4 ) ; int low = ( b & 0x0f ) ; buf . append ( HEX_DIGITS [ high ] ) ; buf . append ( HEX_DIGITS [ low ] ) ; }
description of the method
