org.springmodules.validation.util.io
Class FileIterator

java.lang.Object
  extended by org.springmodules.validation.util.collection.ReadOnlyIterator
      extended by org.springmodules.validation.util.io.FileIterator
All Implemented Interfaces:
Iterator

public class FileIterator
extends ReadOnlyIterator

Iterates over the files within a specific directory.

Author:
Uri Boness

Constructor Summary
FileIterator(File dir)
           
FileIterator(File dir, FileFilter filter)
           
FileIterator(String dirName)
           
FileIterator(String dirName, FileFilter filter)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 
Methods inherited from class org.springmodules.validation.util.collection.ReadOnlyIterator
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileIterator

public FileIterator(String dirName)

FileIterator

public FileIterator(File dir)

FileIterator

public FileIterator(String dirName,
                    FileFilter filter)

FileIterator

public FileIterator(File dir,
                    FileFilter filter)
Method Detail

hasNext

public boolean hasNext()

next

public Object next()


Copyright © 2009. All Rights Reserved.