FileFilters

Colllecton of Java FilenameFilters.

FilenameFilters you can use in your own Java programs with File.list( FilenameFilter f ). They can also be used standalone as fancy dir commands. They come with Java source and include: AllDirectoriesFilter gets all directories AllFilesFilter gets all files ClamFilter simple wildcard DirListFilter gets a list of directories EndsWithFilter gets files whose names end with a given string. EverythingFilter gets everything ExtensionListFilter gets files matching a list of extensions FileLengthFilter gets short or long files FileListFilter gets a list of files (used to be called ListFilter) FilenameLengthFilter gets short or long filenames JunkFilter used to find junk files by name, extension, startsWith or endsWith lists. MultiFilter combines other Filters with "consider", "must" and "never". NoFootFilter includes *.html but excludes *.foot.html RecentFilter filters based on lastModified date RegexFilter filters with Regex expressions. StandAndEndWithFilter - include/exclude depending on start/endings of filenames StartsWithFilter gets files whose names start with a given string.

Changes: add optional invert parameter to many of the fileters

Minimum requirements: Java 1.7+

Operating system: Java,Linux,Mac OS X,Unix,Win2000,Win7 x32,Win7 x64,WinServer,WinVista,WinVista x64,WinXP

Program URL: http://mindprod.com/products1.html#FILTER

FileFilters screenshot

...

Special permissions

You may include FileFilter in any CD compilation.

EULA

This program is for non-military use only. For details on what that licencing restriction means and why I restricted this software that way, see http://mindprod.com/contact/nonmil.html If you incorporate any of my code in your programs, they too must be marked for non-military use only. However it is not your responsibility to enforce that restriction.

Read more