bb.io.filefilter
Class JarOrZipFilter
java.lang.Object
javax.swing.filechooser.FileFilter
bb.io.filefilter.BaseFilter
bb.io.filefilter.RegexFilter
bb.io.filefilter.SuffixFilter
bb.io.filefilter.JarOrZipFilter
- All Implemented Interfaces:
- FileFilter
public class JarOrZipFilter
- extends SuffixFilter
File filter that accepts ZIP or Java Archive files.
Specificly, this file filter accepts only normal files whose names end with the extension ".jar" or ".zip" (case insensitive).
Directories and other file system elements are always rejected, which could affect directory drill down
(see DirUtil.getTree
and DirUtil.getFilesInTree
).
This class is multithread safe: it is immutable.
In particular, it maintains its ancestor class
's immutability.
- Author:
- Brent Boyer
Constructor Summary |
JarOrZipFilter()
Constructs a new JarOrZipFilter instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarOrZipFilter
public JarOrZipFilter()
- Constructs a new JarOrZipFilter instance.
getDescription
public String getDescription()
- Description copied from class:
SuffixFilter
-
The implementation here has some introductory text, followed by a comma separated list of all of the regexes present in RegexFilter.patterns
.
The implementation here has some introductory text, followed by a comma separated list of the suffixes
.
- Overrides:
getDescription
in class SuffixFilter