gnu.inet.nntp

Class LineIterator

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

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

An iterator over an NNTP multi-line response.

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

Author:
Chris Burdess

Nested Class Summary

Method Summary

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.

Method Details

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


remove

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


© Copyright 2003 The Free Software Foundation, all rights reserved