code: public void add(InputSplit s) throws IOException {
      if (null == splits) {
        throw new IOException("Uninitialized InputSplit");
      }
      if (fill == splits.length) {
        throw new IOException("Too many splits");
      }
      splits[fill++] = s;
      totsize += s.getLength();
    }
docs: Add an InputSplit to this collection.
  @throws IOException If capacity was not specified during construction
  or if capacity has been reached.