public static String byteArrayToBinaryString(byte[] block){
  StringBuffer strBuf=new StringBuffer();
  int iLen=block.length;
  for (int i=0; i < iLen; i++) {
    byte2bin(block[i],strBuf);
    if ((i < iLen - 1) & WITH_BYTE_SEPARATOR) {
      strBuf.append(BYTE_SEPARATOR);
    }
  }
  return strBuf.toString();
}

public static String byteArrayToBinaryString ( byte [ ] block ) { StringBuffer strBuf = new StringBuffer ( ) ; int iLen = block . length ; for ( int i = 0 ; i < iLen ; i ++ ) { byte2bin ( block [ i ] , strBuf ) ; if ( ( i < iLen - 1 ) & WITH_BYTE_SEPARATOR ) { strBuf . append ( BYTE_SEPARATOR ) ; } } return strBuf . toString ( ) ; }
description of the method
