Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class FileExistsRule extends Object implements FilesystemIteratorRule
existsRule is used if ANY one of the fullPaths exists.
The notExistsRule is used if NONE of the fullPaths exist.OK, SKIP| Constructor and Description |
|---|
FileExistsRule(String[] fullPaths,
FilesystemIteratorRule existsRule,
FilesystemIteratorRule notExistsRule) |
| Modifier and Type | Method and Description |
|---|---|
FilesystemIteratorRule |
getEffectiveRule(String filename) |
boolean |
isIncluded(String filename)
Gets if this item should be included.
|
public FileExistsRule(String[] fullPaths, FilesystemIteratorRule existsRule, FilesystemIteratorRule notExistsRule)
public FilesystemIteratorRule getEffectiveRule(String filename) throws IOException
IOExceptionpublic boolean isIncluded(String filename) throws IOException
FilesystemIteratorRuleisIncluded in interface FilesystemIteratorRuleIOExceptionCopyright © 2000–2016 AO Industries, Inc.. All rights reserved.