Class SelectiveFileLineIterator

  • All Implemented Interfaces:
    java.util.Iterator<Instance>

    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.
    Author:
    Gregory Druck
    • Constructor Summary

      Constructors 
      Constructor Description
      SelectiveFileLineIterator​(java.io.Reader 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

        forEachRemaining
    • Constructor Detail

      • SelectiveFileLineIterator

        public SelectiveFileLineIterator​(java.io.Reader 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>