upidiff.i18n
Class Catalog.CatalogFilenameFilter
java.lang.Object
|
+--upidiff.i18n.Catalog.CatalogFilenameFilter
- All Implemented Interfaces:
- FilenameFilter
- Enclosing class:
- Catalog
- private final class Catalog.CatalogFilenameFilter
- extends Object
- implements FilenameFilter
Filename filter for catalog files.
A catalog filename is valid if it matches the following format:
[lang]_[country].properties
where [lang] is a two-char ISO language code (e.g. "de" or "en")
and [country] is a two-char ISO country code (e.g. "DE" or "US").
- Author:
- bmeurer
Field Summary |
private File |
directory
Directory to look for catalog files. |
Method Summary |
boolean |
accept(File directory,
String filename)
Checks if a given file is a valid catalog file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
directory
private File directory
- Directory to look for catalog files.
Catalog.CatalogFilenameFilter
Catalog.CatalogFilenameFilter(File directory)
- Creates a new CatalogFilenameFilter.
- Parameters:
directory
- Directory to look for catalog files.
accept
public boolean accept(File directory,
String filename)
- Checks if a given file is a valid catalog file.
- Specified by:
accept
in interface FilenameFilter
- Parameters:
directory
- Base directory of the catalog file.filename
- Filename of the potential catalog file.
- Returns:
- true if the file is a valid catalog file, else false.