org.jppf.utils
Class FileReplacer.ReplacerFilter

java.lang.Object
  extended by org.jppf.utils.FileReplacer.ReplacerFilter
All Implemented Interfaces:
FileFilter
Enclosing class:
FileReplacer

public static class FileReplacer.ReplacerFilter
extends Object
implements FileFilter

File filter based on a set of extensions.


Constructor Summary
FileReplacer.ReplacerFilter(String ext)
          Initializer this filter with the specified set of file extensions.
 
Method Summary
 boolean accept(File file)
          Tests whether or not the specified abstract pathname should be included in a pathname list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileReplacer.ReplacerFilter

public FileReplacer.ReplacerFilter(String ext)
Initializer this filter with the specified set of file extensions.

Parameters:
ext - a comma-separated list of file extensions to process.
Method Detail

accept

public boolean accept(File file)
Tests whether or not the specified abstract pathname should be included in a pathname list.

Specified by:
accept in interface FileFilter
Parameters:
file - the abstract pathname to be tested
Returns:
true if and only if pathname should be included.
See Also:
FileFilter.accept(java.io.File)


Copyright © 2005-2010 JPPF Team.