Package com.aoindustries.io
Interface FilesystemIteratorRule
-
- All Known Implementing Classes:
FileExistsRule
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface FilesystemIteratorRule
Controls the behavior of aFilesystemIterator. Each rule has is mapped in via either a filename or a file prefix. If a rule is provided with an empty filename for regular rules (not prefix-matched), it will be the default for all file system roots.- Author:
- AO Industries, Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static FilesystemIteratorRuleOKA rule that will always be backed-up.static FilesystemIteratorRuleSKIPA rule that will not be backed-up.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisIncluded(String filename)Gets if this item should be included.
-
-
-
Field Detail
-
OK
static final FilesystemIteratorRule OK
A rule that will always be backed-up.
-
SKIP
static final FilesystemIteratorRule SKIP
A rule that will not be backed-up.
-
-
Method Detail
-
isIncluded
boolean isIncluded(String filename) throws IOException
Gets if this item should be included.- Throws:
IOException
-
-