Package org.jbundle.jbackup.util
Class FileExtensionFilter
- java.lang.Object
-
- org.jbundle.jbackup.util.FileExtensionFilter
-
- All Implemented Interfaces:
FileFilter
public class FileExtensionFilter extends Object implements FileFilter
The FileExtensionFilter filters files in a directory depending on their extension.- Version:
- 1.0.0
- Author:
- Don Corley
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]m_rgstrExcludeExtensionsprotected String[]m_rgstrIncludeExtensions
-
Constructor Summary
Constructors Constructor Description FileExtensionFilter(String[] rgstrIncludeExtensions, String[] rgstrExcludeExtensions)Creates new FileExtensionFilter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(File pathname)Tests whether or not the specified abstract pathname should be included in a pathname list.
-
-
-
Method Detail
-
accept
public boolean accept(File pathname)
Tests whether or not the specified abstract pathname should be included in a pathname list.- Specified by:
acceptin interfaceFileFilter- Parameters:
pathname- The abstract pathname to be tested- Returns:
trueif and only ifpathnameshould be included
-
-