This is {@link java.io.FilenameFilter} implementation for class file andjar file filter.
For filtering class file or jar file or both, you have to specified target file type when call constructor. Default constructor is set file type to {@link ClassJarFilenameFilter.TARGET#JAR_CLASS}.
To filter these files, this class check file name postfix string. If file name postfix is ".clsss", determine as class file. If file name postfix is ".jar", determine as jar file.
Filtering file type is
- {@link ClassJarFilenameFilter.TARGET#CLASS} : for only class file.
- {@link ClassJarFilenameFilter.TARGET#JAR} : for only jar file.
- {@link ClassJarFilenameFilter.TARGET#JAR_CLASS} : for both file.
If you specified {@link ClassJarFilenameFilter.TARGET#CLASS} or{@link ClassJarFilenameFilter.TARGET#JAR_CLASS}, this class is accepted a directory. Because these file types contains class file, and typically each class files exists underlying directory hierarchically by package name.
@author Masatoshi Sato