gnu.inet.nntp

Class LineIterator

Implemented Interfaces:
Iterator, PendingData
Known Direct Subclasses:
ActiveTimesIterator, ArticleNumberIterator, GroupIterator, HeaderIterator, OverviewIterator, PairIterator

public class LineIterator
extends java.lang.Object
implements Iterator, PendingData

An iterator over an NNTP multi-line response.

Version:
$Revision: 1.4 $ $Date: 2004/07/28 09:37:21 $

Author:
Chris Burdess

Method Summary

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.

Method Details

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.
Specified by:
readToEOF in interface PendingData


remove

public void remove()
This iterator is read-only.


© Copyright 2003 The Free Software Foundation, all rights reserved