code: @Override
    public final FlatRow[] next(int count) throws IOException {
      ArrayList<FlatRow> resultList = new ArrayList<>(count);
      for (int i = 0; i < count; i++) {
        FlatRow row = next();
        if (row == null) {
          break;
        }
        resultList.add(row);
      }
      return resultList.toArray(new FlatRow[resultList.size()]);
    }
docs: {@inheritDoc}