org.freehep.util.io
Class StandardFileFilter
java.lang.Object
org.freehep.util.io.StandardFileFilter
- All Implemented Interfaces:
- FileFilter
- public class StandardFileFilter
- extends Object
- implements FileFilter
Implements a standard file filter as is normally used in Unix and DOS.
The template characters are treated literally and are case sensitive
with the following exceptions:
- * matches zero or more consecutive characters
- ? matches exactly one character
- \ causes the next character of the template to be treated literally.
Use \\ for \, \* for * and \? for *.
The template should specify slashes as a separator character (e.g. Unix style).
- Version:
- $Id: StandardFileFilter.java,v 1.1 2003/02/06 17:33:16 duns Exp $
- Author:
- Mark Donszelmann
- Source Code:
- StandardFileFilter.java
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardFileFilter
public StandardFileFilter(String template)
accept
public boolean accept(File pathname)
- Specified by:
accept
in interface FileFilter
Copyright © 2000-2004 FreeHEP, All Rights Reserved.