public static class PropertyPack.AdhocFilter
extends java.lang.Object
implements FilenameFilter
Constructor and Description |
---|
AdhocFilter(PropertyPack.NameTool tool,
java.util.Locale lx,
java.lang.String[] exts) |
AdhocFilter(java.lang.String name)
Construct an AdhocFilter that finds files with a given name.
|
AdhocFilter(java.lang.String name,
java.util.Locale loc)
Construct an AdhocFilter that finds files with a given name
and possibly extensions based on a locale.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File dir,
java.lang.String name) |
FilenameFilter |
getJarFilter() |
public AdhocFilter(java.lang.String name)
name
- The name to be soughtpublic AdhocFilter(java.lang.String name, java.util.Locale loc)
name
- The name to be soughtloc
- The locale to be applied. If the
locale is not Locale.ROOT, suffixes are applied to the name
in order to search for variants of the name.
For file foo.ext and locale en_US, these files are sought:
foo_en_US.ext, foo_en.ext, and foo.ext.public AdhocFilter(PropertyPack.NameTool tool, java.util.Locale lx, java.lang.String[] exts)