org.jboss.jsfunit.analysis.util
Class FileUtils.FileExtensionFilter

java.lang.Object
  extended by org.jboss.jsfunit.analysis.util.FileUtils.FileExtensionFilter
All Implemented Interfaces:
FilenameFilter
Enclosing class:
FileUtils

public static class FileUtils.FileExtensionFilter
extends Object
implements FilenameFilter

A FilenameFilter implementation that accepts all files that have an extension from a list passed into this filter. If no extension list is set, or the list is empty, then all files will be accepted.


Constructor Summary
FileUtils.FileExtensionFilter()
           
FileUtils.FileExtensionFilter(List<String> allowedExtensions)
           
 
Method Summary
 boolean accept(File dir, String name)
           
 List<String> getAllowedExtensions()
           
 void setAllowedExtensions(List<String> allowedExtensions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils.FileExtensionFilter

public FileUtils.FileExtensionFilter()

FileUtils.FileExtensionFilter

public FileUtils.FileExtensionFilter(List<String> allowedExtensions)
Method Detail

getAllowedExtensions

public List<String> getAllowedExtensions()

setAllowedExtensions

public void setAllowedExtensions(List<String> allowedExtensions)

accept

public boolean accept(File dir,
                      String name)
Specified by:
accept in interface FilenameFilter


Copyright © 2007-2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.