private static String bigIntegerToAsciiString(final BigInteger bigInteger){
  final byte[] byteArray=bigInteger.toByteArray();
  StringBuffer stringBuffer=new StringBuffer();
  for (int i=0; i < byteArray.length; i++) {
    final char value=(char)(byteArray[i] & 0xFF);
    if (i == 0 && value == 0) {
      continue;
    }
    stringBuffer.append(value);
  }
  return stringBuffer.toString();
}

private static String bigIntegerToAsciiString ( final BigInteger bigInteger ) { final byte [ ] byteArray = bigInteger . toByteArray ( ) ; StringBuffer stringBuffer = new StringBuffer ( ) ; for ( int i = 0 ; i < byteArray . length ; i ++ ) { final char value = ( char ) ( byteArray [ i ] & 0xFF ) ; if ( i == 0 && value == 0 ) { continue ; } stringBuffer . append ( value ) ; } return stringBuffer . toString ( ) ; }
this function is intended to convert operands for display , for example to convert a number such as 0x41424141 into ' abaa ' . also , given java ' s difficulty with unsigned integers , we need to make sure to get an unsigned number .
