org.jboss.jsfunit.analysis.util
Class FileUtils.FileExtensionFilter
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtils.FileExtensionFilter
public FileUtils.FileExtensionFilter()
FileUtils.FileExtensionFilter
public FileUtils.FileExtensionFilter(List<String> allowedExtensions)
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.