|
org.openidex.util/3 3.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileObjectFilter
Implementations of this interface define which files and folders should be searched and which should be skipped during search over a directory structure.
Field Summary | |
---|---|
static int |
DO_NOT_TRAVERSE
constant representing answer "do not traverse the folder" |
static int |
TRAVERSE
constant representing answer "traverse the folder" |
static int |
TRAVERSE_ALL_SUBFOLDERS
constant representing answer "traverse the folder and all its direct and indirect children (both files and subfolders)" |
Method Summary | |
---|---|
boolean |
searchFile(FileObject file)
Answers a question whether a given file should be searched. |
int |
traverseFolder(FileObject folder)
Answers a questions whether a given folder should be traversed (its contents searched). |
Field Detail |
---|
static final int DO_NOT_TRAVERSE
static final int TRAVERSE
static final int TRAVERSE_ALL_SUBFOLDERS
Method Detail |
---|
boolean searchFile(FileObject file) throws IllegalArgumentException
true
if the given file should be searched;
false
if not
IllegalArgumentException
- if the passed FileObject
is a folderint traverseFolder(FileObject folder) throws IllegalArgumentException
DO_NOT_TRAVERSE
,
TRAVERSE
,
TRAVERSE_ALL_SUBFOLDERS
;
if TRAVERSE_ALL_SUBFOLDERS
is returned,
this filter will not be applied on the folder's children
(both direct and indirect, both files and folders)
IllegalArgumentException
- if the passed FileObject
is not a folder
|
org.openidex.util/3 3.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |