public static String toHexString(byte[] array){
  return toHexString(ByteBuffer.wrap(array),0,array.length);
}

public static String toHexString ( byte [ ] array ) { return toHexString ( ByteBuffer . wrap ( array ) , 0 , array . length ) ; }
convert a byte array to a hexadecimal string for display
