public class LineIterator extends Object implements Iterator, PendingData
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Indicates whether there are more lines to be read.
|
Object |
next()
Returns the next line.
|
String |
nextLine()
Returns the next line.
|
void |
readToEOF()
Read to the end of this iterator.
|
void |
remove()
This iterator is read-only.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic boolean hasNext()
public String nextLine() throws IOException
IOExceptionpublic void readToEOF()
throws IOException
readToEOF in interface PendingDataIOException - if an I/O error occurredCopyright © 2017. All rights reserved.