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 8584 2006-08-10 23:06:37Z duns $
- Author:
- Mark Donszelmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardFileFilter
public StandardFileFilter(String template)
- Create a standard file filter
- Parameters:
template
- pattern to be used for file filtering
accept
public boolean accept(File pathname)
- Specified by:
accept
in interface FileFilter
Copyright © 2000-2007 FreeHEP. All Rights Reserved.