com.continuent.tungsten.common.commands
Class PrefixFileFilter

java.lang.Object
  extended by com.continuent.tungsten.common.commands.PrefixFileFilter
All Implemented Interfaces:
java.io.FileFilter

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

Implements a filter that returns any ordinary file whose name starts with a given prefix.

Author:
Robert Hodges

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

Constructor Detail

PrefixFileFilter

public PrefixFileFilter(java.lang.String prefix)
Method Detail

accept

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