gnu.inet.nntp
Class ArticleNumberIterator

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

public class ArticleNumberIterator
extends LineIterator

An iterator over a listing of article numbers.

Author:
Chris Burdess

Method Summary
 java.lang.Object next()
          Returns the next article number.
 int nextArticleNumber()
          Returns the next article number.
 
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 article number.

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

nextArticleNumber

public int nextArticleNumber()
                      throws java.io.IOException
Returns the next article number.

Throws:
java.io.IOException


© Copyright 2003 The Free Software Foundation, all rights reserved