Class SelectiveFileLineIterator

  • All Implemented Interfaces:

    public class SelectiveFileLineIterator
    extends java.lang.Object
    implements java.util.Iterator<Instance>
    Very similar to the SimpleFileLineIterator, but skips lines that match a regular expression.
    Gregory Druck
    • Constructor Summary

      Constructor Description
      SelectiveFileLineIterator​( reader, java.lang.String skipRegex)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      Instance next()  
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

    • Constructor Detail

      • SelectiveFileLineIterator

        public SelectiveFileLineIterator​( reader,
                                         java.lang.String skipRegex)
    • Method Detail

      • next

        public Instance next()
        Specified by:
        next in interface java.util.Iterator<Instance>
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<Instance>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<Instance>