public class LineIterator extends java.lang.Object implements java.util.Iterator, PendingData
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Indicates whether there are more lines to be read.
|
java.lang.Object |
next()
Returns the next line.
|
java.lang.String |
nextLine()
Returns the next line.
|
void |
readToEOF()
Read to the end of this iterator.
|
void |
remove()
This iterator is read-only.
|
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public java.lang.String nextLine() throws java.io.IOException
java.io.IOException
public void remove()
remove
in interface java.util.Iterator
public void readToEOF() throws java.io.IOException
readToEOF
in interface PendingData
java.io.IOException
- if an I/O error occurred