package edu.stanford.nlp.objectbank; import java.util.Iterator; /** * An IteratorFromReaderFactory is used to convert a java.io.Reader * into an Iterator over the Objects of type T represented by the text * in the java.io.Reader. * * @author Jenny Finkel */ public interface IteratorFromReaderFactory<T> { /** Return an iterator over the contents read from r. * * @param r Where to read objects from * @return An Iterator over the objects */ public Iterator<T> getIterator(java.io.Reader r); }