rendered paste bodypublic int fsBlockSummary () { //summery0 unused //summery1 reserved //summery 2 used // summery3 invalid int[] summary = new int[4]; //return bipmap block location Long l = new Long(BM.read_uint32 (sblk, 16)); //read bipmap block byte[] blkbip = dsched.readBlock(l.intValue()); int numBlocks = (nblocks / 256); while(numBlocks > 0){ //read the block for(int i=0; i < 256; i++){ summary[BM.read_ubits(blkbip,(i*2),2)]++; } blkbip = dsched.readBlock(l.intValue()+numBlocks); numBlocks--; } System.out.println("\n"+"Block Summary: " + summary[0] + " unused, " + summary[1] + " reserved, " + summary[2] +" used, " + summary[3] + " invalid"); return 0; }