gnu.inet.nntp
Class LineIterator
java.lang.Object
gnu.inet.nntp.LineIterator
- java.util.Iterator, PendingData
public class LineIterator
extends java.lang.Object
An iterator over an NNTP multi-line response.
Version:
- Chris Burdess
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.
|
hasNext
public boolean hasNext()
Indicates whether there are more lines to be read.
next
public java.lang.Object next()
Returns the next line.
nextLine
public java.lang.String nextLine()
throws java.io.IOException
Returns the next line.
readToEOF
public void readToEOF()
throws java.io.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