public int getUnsetBits ( int batchSize ) throws IOException { int count = 0 ; for ( int i = 0 ; i < batchSize ; i ++ ) { count += nextBit ( ) ? 0 : 1 ; } return count ; }
Return the number of unset bits