gnu.inet.nntp
Class GroupIterator

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

public class GroupIterator
extends LineIterator

An iterator over an NNTP newsgroup listing.

Author:
Chris Burdess

Method Summary
 java.lang.Object next()
          Returns the next group.
 Group nextGroup()
          Returns the next group.
 
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 group.

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

nextGroup

public Group nextGroup()
                throws java.io.IOException
Returns the next group.

Throws:
java.io.IOException


© Copyright 2003 The Free Software Foundation, all rights reserved