gnu.inet.nntp
Class PairIterator

java.lang.Object
  extended by gnu.inet.nntp.LineIterator
      extended by gnu.inet.nntp.PairIterator
All Implemented Interfaces:
PendingData, java.util.Iterator

public class PairIterator
extends LineIterator

An iterator over a pair listing.

Author:
Chris Burdess

Method Summary
 java.lang.Object next()
          Returns the next pair.
 Pair nextPair()
          Returns the next pair.
 
Methods inherited from class gnu.inet.nntp.LineIterator
hasNext, nextLine, readToEOF, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

next

public java.lang.Object next()
Returns the next pair.

Specified by:
next in interface java.util.Iterator
Overrides:
next in class LineIterator

nextPair

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

Throws:
java.io.IOException


© Copyright 2003 The Free Software Foundation, all rights reserved