tribble.search.zip
Class ZIterator

java.lang.Object
  extended bytribble.search.zip.ZIterator
All Implemented Interfaces:
java.util.Enumeration

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

Zipfile entry iterator.

This enumeration allows for iterating over all the entries found by a zipfile searcher.

Since:
2001-05-18
Version:
$Revision: 1.5 $ $Date: 2001/06/19 16:12:25 $
Author:
David R. Tribble (david@tribble.com).
Copyright ©2001 by David R. Tribble, all rights reserved.
See Also:
ZArchive

Field Summary
protected  java.util.Vector m_list
          List of found zipfile entries (ZFile objects).
protected  int m_pos
           
protected  ZArchive m_searcher
          Zipfile searcher.
static int SERIES
          Series number.
 
Constructor Summary
protected ZIterator(ZArchive seacher, java.util.Vector entries)
          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

m_searcher

protected ZArchive m_searcher
Zipfile searcher.


m_list

protected java.util.Vector m_list
List of found zipfile entries (ZFile objects).


m_pos

protected int m_pos
Constructor Detail

ZIterator

protected ZIterator(ZArchive seacher,
                    java.util.Vector entries)
Constructor.

Parameters:
entries - A vector of ZFile zipfile entries to iterate upon.
Since:
1.2, 2001-06-14
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-18

nextElement

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

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