JarAnalyzer Source Code Files

Apache Ant Source Code Files are inside the JarAnalyzer source package like JarAnalyzer-src-1.2.zip. Unzip the source package and go to the "src" sub-directory, you will see source code files.

Here is the list of Java source code files of the JarAnalyzer 1.2 in \Users\fyicenter\JarAnalyzer\src:

✍: FYIcenter.com

com/kirkk/analyzer/framework/bcelbundle/JarBuilderImpl.java

package com.kirkk.analyzer.framework.bcelbundle;

import java.util.*;
import com.kirkk.analyzer.framework.*;
import com.kirkk.analyzer.framework.jar.JarFile;
import com.kirkk.analyzer.framework.bcel.*;
import java.io.*;
import java.util.zip.ZipException;

public class JarBuilderImpl implements JarBuilder {

    public Jar buildJar(JarFile jarFile, List ignorePackages) throws Exception {
        Jar jar = new JarImpl(jarFile.getFileName());
        while (jarFile.hasMoreClasses()) {
            String className = jarFile.nextClass();
            try {
                BCELPublicClass javaClass = new BCELPublicClass(jarFile.getFileName(), className, ignorePackages);
                String packageName = javaClass.getPackageName();
                JarPackage javaPackage = null;
                if(jar.containsPackage(packageName)) {
                    javaPackage = jar.getPackage(packageName);
                } else {
                    javaPackage = new JarPackageImpl(packageName);
                    jar.addPackage(javaPackage);
                }
                javaPackage.addClass(javaClass);
            }
            catch(IOException e) {
                e.printStackTrace();
            }
        }
        jarFile.close();
        return jar;
    }

}

com/kirkk/analyzer/framework/bcelbundle/JarBuilderImpl.java

 

 

⇒ jarscan - JAR File Scanner

⇐ Download JarAnalyzer Source Package

⇑ JarAnalyzer by Kirk Knoernschild

⇑⇑ Java/JAR Tools

2021-07-01, 2497👍, 0💬