ca.cbc.sportwire.util
Class PerlFileFilter

java.lang.Object
  |
  +--ca.cbc.sportwire.util.PerlFileFilter
All Implemented Interfaces:
java.io.FileFilter

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

PerlFileFilter.java: uses the JORO perl tools to filter filenames for the File.list() method.

Created: Thu Feb 7 14:55:14 2002
 $Log: PerlFileFilter.java,v $
 Revision 1.1  2002/02/09 16:23:06  garym
 Added perl FileFilter


 

Version:
$Id: PerlFileFilter.java,v 1.1 2002/02/09 16:23:06 garym Exp $
Author:
Gary Lawrence Murphy

Field Summary
(package private) static org.apache.log4j.Category cat
           
private  org.apache.oro.text.regex.Perl5Matcher perl
           
private  org.apache.oro.text.regex.Pattern regexp
           
 
Constructor Summary
PerlFileFilter(java.lang.String regexp)
          PerlFileFilter constructor
 
Method Summary
 boolean accept(java.io.File candidate)
          accept: returns boolean true if the filename matches the regexp.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

cat

static org.apache.log4j.Category cat

perl

private org.apache.oro.text.regex.Perl5Matcher perl

regexp

private org.apache.oro.text.regex.Pattern regexp
Constructor Detail

PerlFileFilter

public PerlFileFilter(java.lang.String regexp)
               throws java.lang.Exception
PerlFileFilter constructor
Parameters:
regexp - a String value
Method Detail

accept

public boolean accept(java.io.File candidate)
accept: returns boolean true if the filename matches the regexp.
Specified by:
accept in interface java.io.FileFilter
Parameters:
candidate - a File value
Returns:
true if the File.toString() matches