gnu.inet.nntp
Class HeaderIterator

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

public class HeaderIterator
extends LineIterator

An iterator over an NNTP XHDR listing.

Author:
Chris Burdess

Method Summary
 java.lang.Object next()
          Returns the next header entry.
 HeaderEntry nextHeaderEntry()
          Returns the next header entry.
 
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 header entry.

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

nextHeaderEntry

public HeaderEntry nextHeaderEntry()
                            throws java.io.IOException
Returns the next header entry.

Throws:
java.io.IOException


© Copyright 2003 The Free Software Foundation, all rights reserved