|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.pipe.iterator.SimpleFileLineIterator
public class SimpleFileLineIterator
Constructor Summary | |
---|---|
SimpleFileLineIterator(java.io.File file)
|
|
SimpleFileLineIterator(java.lang.String filename)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleFileLineIterator(java.lang.String filename)
public SimpleFileLineIterator(java.io.File file)
Method Detail |
---|
public void setProgressDisplayInterval(int interval)
interval
- how often to printpublic Instance next()
next
in interface java.util.Iterator<Instance>
public boolean hasNext()
hasNext
in interface java.util.Iterator<Instance>
public void remove()
remove
in interface java.util.Iterator<Instance>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |