org.jvnet.hudson.plugins.backup.utils.filename
Class SimpleFileFilter

java.lang.Object
  extended by org.jvnet.hudson.plugins.backup.utils.filename.SimpleFileFilter
All Implemented Interfaces:
java.io.FileFilter

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

Very simple FileFilter which only accepts files/directories specified as parameters of the constructor.

Author:
Romain Seguy

Constructor Summary
SimpleFileFilter(java.io.File basedir, java.lang.String[] directories, java.lang.String[] files)
           
 
Method Summary
 boolean accept(java.io.File pathname)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFileFilter

public SimpleFileFilter(java.io.File basedir,
                        java.lang.String[] directories,
                        java.lang.String[] files)
Parameters:
basedir - the base directory which contains the specified directories or files
directories - a set of sub-directories of basedir to be accepted by this filter
files - a set of files contained in basedir to be accepted by this filter
Method Detail

accept

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


Copyright © 2010. All Rights Reserved.