public static Edu.Stanford.Nlp.Objectbank.ObjectBank <X> GetLineIterator <X, _T1>(ICollection <_T1> filesStringsAndReaders, IFunction <string, X> op, string encoding)
        {
            ReaderIteratorFactory          rif  = new ReaderIteratorFactory(filesStringsAndReaders, encoding);
            IIteratorFromReaderFactory <X> ifrf = LineIterator.GetFactory(op);

            return(new Edu.Stanford.Nlp.Objectbank.ObjectBank <X>(rif, ifrf));
        }
        public static Edu.Stanford.Nlp.Objectbank.ObjectBank <X> GetLineIterator <X>(Reader reader, IFunction <string, X> op)
        {
            ReaderIteratorFactory          rif  = new ReaderIteratorFactory(reader);
            IIteratorFromReaderFactory <X> ifrf = LineIterator.GetFactory(op);

            return(new Edu.Stanford.Nlp.Objectbank.ObjectBank <X>(rif, ifrf));
        }
        public static Edu.Stanford.Nlp.Objectbank.ObjectBank <X> GetLineIterator <X>(File file, Func <string, X> op, string encoding)
        {
            ReaderIteratorFactory          rif  = new ReaderIteratorFactory(file, encoding);
            IIteratorFromReaderFactory <X> ifrf = LineIterator.GetFactory(op);

            return(new Edu.Stanford.Nlp.Objectbank.ObjectBank <X>(rif, ifrf));
        }
 public virtual void Clear()
 {
     rif = new ReaderIteratorFactory();
 }
 /// <summary>
 /// This creates a new ObjectBank with the given ReaderIteratorFactory
 /// and ObjectIteratorFactory.
 /// </summary>
 /// <param name="rif">
 /// The
 /// <see cref="ReaderIteratorFactory"/>
 /// from which to get Readers
 /// </param>
 /// <param name="ifrf">
 /// The
 /// <see cref="IIteratorFromReaderFactory{T}"/>
 /// which turns java.io.Readers
 /// into Iterators of Objects
 /// </param>
 public ObjectBank(ReaderIteratorFactory rif, IIteratorFromReaderFactory <E> ifrf)
 {
     this.rif  = rif;
     this.ifrf = ifrf;
 }
 /// <summary>Sole constructor.</summary>
 public ReaderIterator(ReaderIteratorFactory _enclosing)
 {
     this._enclosing = _enclosing;
     this.iter       = this._enclosing.c.GetEnumerator();
     this.SetNextObject();
 }