// Path: confucius-commons-lang/src/main/java/org/confucius/commons/lang/constants/FileSuffixConstants.java
// public interface FileSuffixConstants {
// 
//     /**
//      * Jar File suffix : ".jar"
//      */
//     String JAR = Constants.DOT + ProtocolConstants.JAR;
// 
//     /**
//      * War File suffix : ".jar"
//      */
//     String WAR = Constants.DOT + ProtocolConstants.WAR;
// 
//     /**
//      * Ear File suffix : ".jar"
//      */
//     String EAR = Constants.DOT + ProtocolConstants.EAR;
// 
//     /**
//      * Class File suffix : ".class"
//      *
//      * @since 1.0.0
//      */
//     String CLASS = Constants.DOT + Constants.CLASS;
// }


import org.confucius.commons.lang.constants.FileSuffixConstants;
import java.util.jar.JarEntry;
/**
 *
 */
package org.confucius.commons.lang.filter;



/**
 * Class File {@link JarEntryFilter}
 *
 * @author <a href="mailto:mercyblitz@gmail.com">Mercy<a/>
 * @version 1.0.0
 * @see ClassFileJarEntryFilter
 * @since 1.0.0
 */
public class ClassFileJarEntryFilter implements JarEntryFilter {

    /**
     * {@link ClassFileJarEntryFilter} Singleton instance
     */
    public static final ClassFileJarEntryFilter INSTANCE = new ClassFileJarEntryFilter();

    protected ClassFileJarEntryFilter() {

    }

    @Override
    public boolean accept(JarEntry jarEntry) {
// Path: confucius-commons-lang/src/main/java/org/confucius/commons/lang/constants/FileSuffixConstants.java
// public interface FileSuffixConstants {
// 
//     /**
//      * Jar File suffix : ".jar"
//      */
//     String JAR = Constants.DOT + ProtocolConstants.JAR;
// 
//     /**
//      * War File suffix : ".jar"
//      */
//     String WAR = Constants.DOT + ProtocolConstants.WAR;
// 
//     /**
//      * Ear File suffix : ".jar"
//      */
//     String EAR = Constants.DOT + ProtocolConstants.EAR;
// 
//     /**
//      * Class File suffix : ".class"
//      *
//      * @since 1.0.0
//      */
//     String CLASS = Constants.DOT + Constants.CLASS;
// }


// Path: confucius-commons-lang/src/main/java/org/confucius/commons/lang/filter/ClassFileJarEntryFilter.java
import org.confucius.commons.lang.constants.FileSuffixConstants;
import java.util.jar.JarEntry;

/**
 *
 */
package org.confucius.commons.lang.filter;



/**
 * Class File {@link JarEntryFilter}
 *
 * @author <a href="mailto:mercyblitz@gmail.com">Mercy<a/>
 * @version 1.0.0
 * @see ClassFileJarEntryFilter
 * @since 1.0.0
 */
public class ClassFileJarEntryFilter implements JarEntryFilter {

    /**
     * {@link ClassFileJarEntryFilter} Singleton instance
     */
    public static final ClassFileJarEntryFilter INSTANCE = new ClassFileJarEntryFilter();

    protected ClassFileJarEntryFilter() {

    }

    @Override
    public boolean accept(JarEntry jarEntry) {
        return !jarEntry.isDirectory() && jarEntry.getName().endsWith(FileSuffixConstants.CLASS);