private static void byte2bin(byte b,StringBuffer buf){
  for (int i=0; i < 8; i++) {
    if ((b & COMPARE_BITS[i]) != 0) {
      buf.append(BIT_DIGIT[1]);
    }
 else {
      buf.append(BIT_DIGIT[0]);
    }
  }
}

private static void byte2bin ( byte b , StringBuffer buf ) { for ( int i = 0 ; i < 8 ; i ++ ) { if ( ( b & COMPARE_BITS [ i ] ) != 0 ) { buf . append ( BIT_DIGIT [ 1 ] ) ; } else { buf . append ( BIT_DIGIT [ 0 ] ) ; } } }
description of the method
