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.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic java.lang.String nextLine()
throws java.io.IOException
java.io.IOExceptionpublic void remove()
remove in interface java.util.Iteratorpublic void readToEOF()
throws java.io.IOException
readToEOF in interface PendingDatajava.io.IOException - if an I/O error occurred© Copyright 2003 The Free Software Foundation, all rights reserved