org.deegree.framework.util
Class ConvenienceFileFilter
java.lang.Object
org.deegree.framework.util.ConvenienceFileFilter
- All Implemented Interfaces:
- java.io.FilenameFilter
public class ConvenienceFileFilter
- extends java.lang.Object
- implements java.io.FilenameFilter
Class to be used with
- Since:
- 2.0
- Version:
- $Revision: 18195 $, 1.0. $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
- Author:
- Andreas Poth, last edited by: $Author: mschneider $
- See Also:
for reading all file/directory names starting at a given root directory
Method Summary |
boolean |
accept(java.io.File file,
java.lang.String name)
|
java.lang.String |
getDescription()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConvenienceFileFilter
public ConvenienceFileFilter(java.util.List<java.lang.String> extensions,
boolean returnDirsAsTrue)
- Parameters:
extensions
- list of considered file extensions (e.g. tif, BMP, Gif ..) The is is not case
sensitive; use '*' for returning all filesreturnDirsAsTrue
- if set too true the method also return directory names- See Also:
will return 'true' if the passed
,
is a directory
ConvenienceFileFilter
public ConvenienceFileFilter(boolean returnDirsAsTrue,
java.lang.String... extensions)
- Parameters:
returnDirsAsTrue
- if set too true the method also return directory namesextensions
- list of considered file extensions (e.g. tif, BMP, Gif ..) The is is not case
sensitive; use '*' for returning all files
getDescription
public java.lang.String getDescription()
- Returns:
- *.* (all files)
accept
public boolean accept(java.io.File file,
java.lang.String name)
- Specified by:
accept
in interface java.io.FilenameFilter
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org