gnu.inet.gopher
Class DirectoryListing

java.lang.Object
  extended by gnu.inet.gopher.DirectoryListing
All Implemented Interfaces:
java.util.Iterator

public final class DirectoryListing
extends java.lang.Object
implements java.util.Iterator

A gopher directory listing.

Author:
Chris Burdess

Method Summary
 boolean hasNext()
          Indicates whether this listing contains more entries.
 java.lang.Object next()
           
 DirectoryEntry nextEntry()
          Returns the next entry in the directory listing.
 void remove()
          This iterator is read-only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

public boolean hasNext()
Indicates whether this listing contains more entries.

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
See Also:
nextEntry()

remove

public void remove()
This iterator is read-only.

Specified by:
remove in interface java.util.Iterator

nextEntry

public DirectoryEntry nextEntry()
                         throws java.io.IOException
Returns the next entry in the directory listing.

Throws:
java.io.IOException


© Copyright 2003 The Free Software Foundation, all rights reserved