Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## cc.mallet.pipe.iterator
Class SimpleFileLineIterator

    java.lang.Object
      cc.mallet.pipe.iterator.SimpleFileLineIterator

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

    public class SimpleFileLineIterator

extends java.lang.Object
implements java.util.Iterator<Instance>

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

### SimpleFileLineIterator

    public SimpleFileLineIterator(java.lang.String filename)

### SimpleFileLineIterator

    public SimpleFileLineIterator(java.io.File file)

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

### 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>`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD