de.lmu.ifi.dbs.elki.utilities
Class InspectionUtil.DirClassIterator

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.InspectionUtil.DirClassIterator
All Implemented Interfaces:
Iterable<String>, Iterator<String>
Enclosing class:
InspectionUtil

static class InspectionUtil.DirClassIterator
extends Object
implements Iterator<String>, Iterable<String>

Class to iterate over a directory tree.


Field Summary
private  String cur
           
private  String prefix
           
private  Stack<File> set
           
 
Constructor Summary
InspectionUtil.DirClassIterator(File path)
          Constructor from Directory
 
Method Summary
private  String findNext()
          Find the next entry, since we need to skip some jar file entries.
 boolean hasNext()
           
 Iterator<String> iterator()
           
 String next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefix

private String prefix

set

private Stack<File> set

cur

private String cur
Constructor Detail

InspectionUtil.DirClassIterator

public InspectionUtil.DirClassIterator(File path)
Constructor from Directory

Parameters:
path - Directory to iterate over
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<String>

findNext

private String findNext()
Find the next entry, since we need to skip some jar file entries.

Returns:
next entry or null

next

public String next()
Specified by:
next in interface Iterator<String>

remove

public void remove()
Specified by:
remove in interface Iterator<String>

iterator

public Iterator<String> iterator()
Specified by:
iterator in interface Iterable<String>

Release 0.4.0 (2011-09-20_1324)