public abstract class DirectoryIterator extends Object
DirectoryIterators.| Modifier and Type | Field and Description |
|---|---|
protected File |
dir |
protected String |
extensionFilter |
protected boolean |
isRecursive |
static String |
LARGE |
protected static org.slf4j.Logger |
LOG |
static String |
ZIP |
| Constructor and Description |
|---|
DirectoryIterator() |
| Modifier and Type | Method and Description |
|---|---|
static Iterator<File> |
get(String directoryIteratorType,
File dir,
String extensionFilter,
boolean recursive)
Loads a
DirectoryIterator by reflexion and sets dir and
extensionFilter |
abstract Iterator<File> |
iterator() |
DirectoryIterator |
setDirectory(File dir) |
DirectoryIterator |
setExtensionFilter(String ext) |
DirectoryIterator |
setRecursive(boolean isRecursive) |
protected static org.slf4j.Logger LOG
public static final String LARGE
public static final String ZIP
protected File dir
protected String extensionFilter
protected boolean isRecursive
public DirectoryIterator setDirectory(File dir) throws FileNotFoundException
FileNotFoundExceptionpublic DirectoryIterator setExtensionFilter(String ext)
ext - the file extension to filter on, should be e.g. "pdf" (WITHOUT
dot!)public DirectoryIterator setRecursive(boolean isRecursive)
public abstract Iterator<File> iterator() throws IOException
IOExceptionpublic static Iterator<File> get(String directoryIteratorType, File dir, String extensionFilter, boolean recursive) throws IOException
DirectoryIterator by reflexion and sets dir and
extensionFilterIOException - if anything goes wrong, including RuntimeExceptionsCopyright © 2015 Bluebrain Project. All rights reserved.