gnu.inet.nntp
Class LineIterator
java.lang.Object
gnu.inet.nntp.LineIterator
- Iterator, PendingData
public class LineIterator
extends java.lang.Object
An iterator over an NNTP multi-line response.
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.
|
hasNext
public boolean hasNext()
Indicates whether there are more lines to be read.
next
public Object next()
Returns the next line.
nextLine
public String nextLine()
throws IOException
Returns the next line.
readToEOF
public void readToEOF()
throws IOException
Read to the end of this iterator.
- readToEOF in interface PendingData
remove
public void remove()
This iterator is read-only.
© Copyright 2003 The Free Software Foundation,
all rights reserved