at.tuwien.ifs.somtoolbox.util
Class PrefixFilenameFilter

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.util.PrefixFilenameFilter
All Implemented Interfaces:
FilenameFilter

public class PrefixFilenameFilter
extends Object
implements FilenameFilter

A simple filename filter that checks for the correct prefix of files.

Version:
$Id: PrefixFilenameFilter.java 3883 2010-11-02 17:13:23Z frank $
Author:
Sebastian Skritek (0226286, Sebastian.Skritek@gmx.at)

Field Summary
private  String prefix
           
 
Constructor Summary
PrefixFilenameFilter(String prefix)
           
 
Method Summary
 boolean accept(File dir, String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefix

private String prefix
Constructor Detail

PrefixFilenameFilter

public PrefixFilenameFilter(String prefix)
Method Detail

accept

public boolean accept(File dir,
                      String name)
Specified by:
accept in interface FilenameFilter