public final class FileFilterExtensions extends Object implements FileFilter
Configureable implementation of FileFilter used for
selection of the test documents under the collection root.
Kept private because no state-verification is performed: The configuration may (but shouldn't) be made at runtime.
public FileFilterExtensions(String[] extensionsWithoutDot) throws IllegalArgumentException
extensionsWithoutDot - A String[] containing extension strings without the dot like: new String[]{"bat","txt","dict"}IllegalArgumentExceptionpublic boolean accept(File pathname)
accept 在接口中 FileFilterCopyright © 2016. All rights reserved.