tribble.search.disk
Class FIterator

java.lang.Object
  extended bytribble.search.disk.FIterator
All Implemented Interfaces:
java.util.Enumeration

public class FIterator
extends java.lang.Object
implements java.util.Enumeration

File entry list iterator/enumeration.

Since:
2001-05-12
Version:
$Revision: 1.3 $ $Date: 2001/06/18 03:04:28 $
Author:
David R. Tribble (david@tribble.com).
Copyright 2001 by David R. Tribble, all rights reserved.
See Also:
FDirectory

Field Summary
static int SERIES
          Series number.
 
Constructor Summary
protected FIterator(FDirectory searcher, java.util.Vector list)
          Constructor.
 
Method Summary
 boolean hasMoreElements()
          Determine if there are any more entries left in this enumeration.
 java.lang.Object nextElement()
          Retrieve the next element from this enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERIES

public static final int SERIES
Series number.

See Also:
Constant Field Values
Constructor Detail

FIterator

protected FIterator(FDirectory searcher,
                    java.util.Vector list)
Constructor.

Parameters:
searcher - The disk directory searcher that created this iterator.
Since:
1.2, 2001-06-15
Method Detail

hasMoreElements

public boolean hasMoreElements()
Determine if there are any more entries left in this enumeration.

Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
True if there are entries left to iterate upon, otherwise false.
Since:
1.1, 2001-05-12

nextElement

public java.lang.Object nextElement()
Retrieve the next element from this enumeration.

Specified by:
nextElement in interface java.util.Enumeration
Returns:
A FFile object corresponding to a directory file found by a directory searcher. Returns null if there are no more entries left in the list.
Since:
1.1, 2001-05-12