com.nsftools.zip
Class SimplePatternFilter

java.lang.Object
  extended by com.nsftools.zip.SimplePatternFilter
All Implemented Interfaces:
java.io.FileFilter

public class SimplePatternFilter
extends java.lang.Object
implements java.io.FileFilter

This class is a simple implementation of a FileFilter that can be used for matching file names using DOS-like patterns (like *.txt or foo.???). See the PatternMatch class for details.

This (and the PatternMatch class) are primarily intended for use on Java 1.3 and earlier. If you're using Java 1.4 or later (like most of the world), you really should be using regular expressions to do this sort of thing.

Version:
1.0
Author:
Julian Robichaux -- http://www.nsftools.com

Constructor Summary
SimplePatternFilter(java.lang.String pattern)
           
 
Method Summary
 boolean accept(java.io.File file)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePatternFilter

public SimplePatternFilter(java.lang.String pattern)
Method Detail

accept

public boolean accept(java.io.File file)
Specified by:
accept in interface java.io.FileFilter