uk.org.retep.util.io
Class PackageFileFilter.Exclude
java.lang.Object
uk.org.retep.util.io.PatternFileFilter
uk.org.retep.util.io.PackageFileFilter
uk.org.retep.util.io.PackageFileFilter.Exclude
- All Implemented Interfaces:
- java.io.FileFilter
- Enclosing class:
- PackageFileFilter
public static final class PackageFileFilter.Exclude
- extends PackageFileFilter
An Exclude filter, where all files that do not match, but are under the
base directory are included.
|
Constructor Summary |
PackageFileFilter.Exclude(java.io.File baseDirectory,
java.util.Collection<?> patterns)
Create a FileFilter with the supplied patterns. |
PackageFileFilter.Exclude(java.io.File baseDirectory,
java.util.regex.Pattern... patterns)
Create a FileFilter with the supplied Patterns. |
PackageFileFilter.Exclude(java.io.File baseDirectory,
java.lang.String... globs)
Create a FileFilter with the supplied globs. |
|
Method Summary |
boolean |
accept(java.io.File file)
Accept all files that are beneath the base directory and do not match
any Pattern |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PackageFileFilter.Exclude
public PackageFileFilter.Exclude(java.io.File baseDirectory,
java.util.regex.Pattern... patterns)
- Create a FileFilter with the supplied Patterns.
- Parameters:
baseDirectory - The base directorypatterns - Pattern array to include
PackageFileFilter.Exclude
public PackageFileFilter.Exclude(java.io.File baseDirectory,
java.lang.String... globs)
- Create a FileFilter with the supplied globs.
- Parameters:
baseDirectory - The base directoryglobs - String array to include
PackageFileFilter.Exclude
public PackageFileFilter.Exclude(java.io.File baseDirectory,
java.util.Collection<?> patterns)
- Create a FileFilter with the supplied patterns.
- Parameters:
baseDirectory - The base directorypatterns - Collection that can contain either Pattern or String objects.
accept
public final boolean accept(java.io.File file)
- Accept all files that are beneath the base directory and do not match
any Pattern
- Parameters:
file - File to test
- Returns:
- true if the file is not to be excluded.
Copyright © 1998-2010 Retep Development Group. All Rights Reserved.