org.glite.security.util
Class FileEndingIterator

java.lang.Object
  extended by org.glite.security.util.FileEndingIterator

public class FileEndingIterator
extends java.lang.Object

Lists all the files in the given directory that end with a certain ending.

Author:
Joni Hahkala Created on December 3, 2001, 9:16 AM

Constructor Summary
FileEndingIterator(java.lang.String path, java.lang.String ending)
          Creates new FileIterator and searches the first match.
 
Method Summary
 boolean hasNext()
          Used to check that there are more matching files to get using next().
 java.io.File next()
          Used to get the next matching file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileEndingIterator

public FileEndingIterator(java.lang.String path,
                          java.lang.String ending)
Creates new FileIterator and searches the first match.

Parameters:
path - The directory used for the file search.
ending - The file ending to search for.
Method Detail

next

public java.io.File next()
Used to get the next matching file.

Returns:
Returns the next matching file.

hasNext

public boolean hasNext()
Used to check that there are more matching files to get using next().

Returns:
Returns true if there are more matching files.