cc.mallet.pipe.iterator
Class SelectiveFileLineIterator

java.lang.Object
  extended by cc.mallet.pipe.iterator.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
SelectiveFileLineIterator(java.io.Reader reader, java.lang.String skipRegex)
           
 
Method Summary
 boolean hasNext()
           
 Instance next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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>