public class DbPropertiesFileFilter
extends java.lang.Object
implements java.io.FileFilter
driver
and url
keys. Optionally, the user
can specify a list of file extensions that the file must match in
order to be considered.Constructor and Description |
---|
DbPropertiesFileFilter()
Construct a DbPropertiesFileFilter without an extensions list.
|
DbPropertiesFileFilter(java.util.Collection<java.lang.String> extensions)
Construct a DbPropertiesFileFilter with a list of extensions
that the filename must have in order to be considered a valid
properties file.
|
DbPropertiesFileFilter(java.lang.String[] extensions)
Construct a DbPropertiesFileFilter with a list of extensions
that the filename must have in order to be considered a valid
properties file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File pathname)
Tests whether or not the specified abstract pathname should be
included in a pathname list.
|
public DbPropertiesFileFilter()
public DbPropertiesFileFilter(java.lang.String[] extensions)
extensions
- array of strings to match against the filenamepublic DbPropertiesFileFilter(java.util.Collection<java.lang.String> extensions)
extensions
- collection of strings to match against the
filenamepublic boolean accept(java.io.File pathname)
accept
in interface java.io.FileFilter
pathname
- the abstract pathname to be testedtrue
if the file appears to be a valid
JDBC properties file; false
otherwise