|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mybatchfwk.history.LineIterator
public class LineIterator
An adapter that exposes a buffered reader as an iterator over the returned lines.
The close() method must be called after the iteration to close the reader.
| Nested Class Summary | |
|---|---|
static class |
LineIterator.IOEWrapper
A wrapper of IOException |
| Constructor Summary | |
|---|---|
LineIterator(java.io.BufferedReader reader)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the bufferred reader |
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LineIterator(java.io.BufferedReader reader)
reader - | Method Detail |
|---|
public java.lang.Object next()
next in interface java.util.Iterator
public boolean hasNext()
throws LineIterator.IOEWrapper
hasNext in interface java.util.IteratorLineIterator.IOEWrapperpublic void remove()
remove in interface java.util.Iteratorpublic void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||