fr.paris.lutece.plugins.updater.service.resource
Class PrefixPatternFilter

java.lang.Object
  extended by fr.paris.lutece.plugins.updater.service.resource.PrefixPatternFilter
All Implemented Interfaces:
java.io.FileFilter, java.io.FilenameFilter, org.apache.commons.io.filefilter.IOFileFilter

public class PrefixPatternFilter
extends java.lang.Object
implements org.apache.commons.io.filefilter.IOFileFilter

FileFilter based on filename prefix


Constructor Summary
PrefixPatternFilter(java.lang.String strPrefix)
          Constructor
 
Method Summary
 boolean accept(java.io.File file)
          Checks to see if the File should be accepted by this filter.
 boolean accept(java.io.File file, java.lang.String strFilename)
          Checks to see if the File should be accepted by this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefixPatternFilter

public PrefixPatternFilter(java.lang.String strPrefix)
Constructor

Parameters:
strPrefix - The prefix
Method Detail

accept

public boolean accept(java.io.File file)
Checks to see if the File should be accepted by this filter.

Specified by:
accept in interface java.io.FileFilter
Specified by:
accept in interface org.apache.commons.io.filefilter.IOFileFilter
Parameters:
file - The file to check
Returns:
true if the file matches the test

accept

public boolean accept(java.io.File file,
                      java.lang.String strFilename)
Checks to see if the File should be accepted by this filter.

Specified by:
accept in interface java.io.FilenameFilter
Specified by:
accept in interface org.apache.commons.io.filefilter.IOFileFilter
Parameters:
file - The file to check
strFilename - The filename
Returns:
true if the file matches the test


Copyright © 2009 Mairie de Paris. All Rights Reserved.