gnu.inet.nntp

Class PairIterator

Implemented Interfaces:
Iterator, PendingData

public class PairIterator
extends LineIterator

An iterator over a pair listing.

Method Summary

Object
next()
Returns the next pair.
Pair
nextPair()
Returns the next pair.

Methods inherited from class gnu.inet.nntp.LineIterator

hasNext, next, nextLine, readToEOF, remove

Method Details

next

public Object next()
Returns the next pair.
Overrides:
next in interface LineIterator

nextPair

public Pair nextPair()
            throws IOException
Returns the next pair.