Package cc.mallet.pipe.iterator
Class SimpleFileLineIterator
- java.lang.Object
-
- cc.mallet.pipe.iterator.SimpleFileLineIterator
-
-
Constructor Summary
Constructors Constructor Description SimpleFileLineIterator(java.io.File file)
SimpleFileLineIterator(java.lang.String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Instance
next()
void
remove()
void
setProgressDisplayInterval(int interval)
Set the iterator to periodically print the total number of lines read to standard out.
-
-
-
Method Detail
-
setProgressDisplayInterval
public void setProgressDisplayInterval(int interval)
Set the iterator to periodically print the total number of lines read to standard out.- Parameters:
interval
- how often to print
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<Instance>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<Instance>
-
-