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

## org.archive.util.iterator
Class LineReadingIterator

    java.lang.Object
      org.archive.util.iterator.LookaheadIterator<java.lang.String>
          org.archive.util.iterator.LineReadingIterator

All Implemented Interfaces:
  java.util.Iterator<java.lang.String>

    public class LineReadingIterator

extends LookaheadIterator<java.lang.String>

Utility class providing an Iterator interface over line-oriented text input, as a thin wrapper over a BufferedReader.

Author:
  gojomo

Field Summary
`protected java.io.BufferedReader` | `reader`

Fields inherited from class org.archive.util.iterator.LookaheadIterator
`next`

Constructor Summary
`LineReadingIterator(java.io.BufferedReader r)`

Method Summary
`protected boolean` | `lookahead()` Loads next line into lookahead spot

Methods inherited from class org.archive.util.iterator.LookaheadIterator
`hasNext, next, remove`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### reader

    protected java.io.BufferedReader reader

Constructor Detail

### LineReadingIterator

    public LineReadingIterator(java.io.BufferedReader r)

Method Detail

### lookahead

    protected boolean lookahead()

  Loads next line into lookahead spot

  Specified by:
    `lookahead` in class `LookaheadIterator<java.lang.String>`
  Returns:
    whether any item was loaded into next field

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

Copyright © 2003-2008 Internet Archive. All Rights Reserved.