public class ExtensionFileFilter extends Object implements FileFilter
Constructor and Description |
---|
ExtensionFileFilter(String extension)
Creates a new instance of PropertiesFileNameFilter
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File pathname)
Tests whether or not the specified abstract pathname should be
included in a pathname list.
|
String |
getExtension()
Getter for property extension.
|
public ExtensionFileFilter(String extension)
public boolean accept(File pathname)
accept
in interface FileFilter
pathname
- The abstract pathname to be testedtrue
if and only if pathname
should be includedpublic String getExtension()
Copyright © 2002–2016 SoftSmithy. All rights reserved.