code: public int getNextFiles(final File[] files, final int batchSize) throws IOException {
  		int c=0;
  		while(c<batchSize) {
  			File file=getNextFile();
  			if(file==null) break;
  			files[c++]=file;
  		}
  		return c;
  	}
docs: Gets the next files, up to batchSize.
  @return the number of files in the array, zero (0) indicates iteration has completed
  @throws java.io.IOException