Package org.nuxeo.osgi.util
Class FileIterator
java.lang.Object
org.nuxeo.osgi.util.FileIterator
- All Implemented Interfaces:
Enumeration<File>
,Iterator<File>
- Author:
- Bogdan Stefanescu
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Enumeration<URL>
asUrlEnumeration
(Iterator<File> it) asUrlIterator
(Iterator<File> it) void
Feed the iterator with the given directory content if anyboolean
boolean
Enumeration APIboolean
hasNext()
next()
void
remove()
void
setSkipDirs
(boolean skipDirs) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Enumeration
asIterator
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
filter
-
files
-
file
-
skipDirs
protected boolean skipDirs
-
-
Constructor Details
-
FileIterator
-
FileIterator
-
-
Method Details
-
asUrlIterator
-
asUrlEnumeration
-
setSkipDirs
public void setSkipDirs(boolean skipDirs) -
getSkipDirs
public boolean getSkipDirs() -
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
feed
Feed the iterator with the given directory content if any -
hasMoreElements
public boolean hasMoreElements()Enumeration API- Specified by:
hasMoreElements
in interfaceEnumeration<File>
-
nextElement
- Specified by:
nextElement
in interfaceEnumeration<File>
-