public void close() { input.close(); input = null; next = null; }
public T next() { T val = next; next = input.readModel(); return val; }
public ModelInputIterator(ModelInput<T> inp) { input = inp; next = input.readModel(); }