public abstract class ConfigFileRedeemer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.logging.Logger |
logger |
| Constructor and Description |
|---|
ConfigFileRedeemer(java.util.logging.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
_isNotAConfigFile(java.io.File file)
Called by
isNotAConfigFile(File) only if the file ending matches
one of the endings in getFileEndings(). |
abstract java.lang.String[] |
getFileEndings()
Subclasses supply the endings of files that they can possibly redeem.
|
java.lang.String |
getName() |
boolean |
isNotAConfigFile(java.io.File file)
Checks whether the given file is known to be not a config file,
but to serve a more respectable purpose.
|
public final boolean isNotAConfigFile(java.io.File file)
Note that the selection is negative: from all files that are suspected based on their file ending, we prune those which are known to be not config files.
protected abstract boolean _isNotAConfigFile(java.io.File file)
isNotAConfigFile(File) only if the file ending matches
one of the endings in getFileEndings().public abstract java.lang.String[] getFileEndings()
Note that in order to match, the file name must end with one of the given strings,
see String.endsWith(java.lang.String). The ending may therefore contain more than one '.'.
public java.lang.String getName()