Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
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/JarCollectionImpl.java
package com.kirkk.analyzer.framework.bcelbundle; import com.kirkk.analyzer.framework.*; import com.kirkk.analyzer.framework.jar.*; import java.util.*; import java.io.*; public class JarCollectionImpl implements JarCollection { private List jars; private Iterator jarIterator; public JarCollectionImpl(File file) throws Exception { this(file, new ArrayList()); } public JarCollectionImpl(File file, List ignorePackages) throws Exception { this(file, ignorePackages, new ArrayList()); } public JarCollectionImpl(File file, List ignorePackages, List ignoreJars) throws Exception { this.jars = this.getJars(file, ignorePackages, ignoreJars); this.jarIterator = this.jars.iterator(); } public int getJarCount() { return this.jars.size(); } public boolean hasNext() { return this.jarIterator.hasNext(); } public Jar nextJar() { return (Jar)this.jarIterator.next(); } public void first() { this.jarIterator = jars.iterator(); } public Jar getJar(String jarName) { Iterator jarIterator = this.jars.iterator(); while (jarIterator.hasNext()) { Jar jar = (Jar) jarIterator.next(); if (jar.getJarFileName().equals(jarName)) { return jar; } } return null; } public Jar getJarContainingPackage(String packageName) { Iterator jarIterator = this.jars.iterator(); while (jarIterator.hasNext()) { Jar jar = (Jar) jarIterator.next(); if (jar.containsPackage(packageName)) { return jar; } } return null; } public Jar[] toArray() { Jar[] jar = new Jar[jars.size()]; Iterator jarIterator = jars.iterator(); int i = 0; while (jarIterator.hasNext()) { jar[i] = (Jar) jarIterator.next(); i++; } return jar; } private List getJars(File file, List ignorePackages, List ignoreJars) throws Exception { if (file.isDirectory()) { File files[] = this.getJarFiles(file); ArrayList jars = new ArrayList(); for (int i = 0; i < files.length; i++) { JarBuilder jarBuilder = new JarBuilderImpl(); JarFile jarFile = new JarFile(files[i]); Jar jar = jarBuilder.buildJar(jarFile, ignorePackages); if ( (jar.getClassCount() > 0) && (ignoreJars.contains(jar.getJarFileName()) == false) ) { jars.add(jar); } } return jars; } else { throw new IOException("File must be a directory"); } } private File[] getJarFiles(File file) { FilenameFilter filter = new FilenameFilter() { public boolean accept(File file, String fileName) { if (fileName.endsWith(".jar")) { return true; } else { return false; } } }; return file.listFiles(filter); } }
⏎ com/kirkk/analyzer/framework/bcelbundle/JarCollectionImpl.java
Or download all of them as a single archive file:
File name: JarAnalyzer-1.20-fyi.zip File size: 19949 bytes Release date: 2007-08-03 Download
⇐ Download JarAnalyzer Source Package
2021-07-01, 5025👍, 0💬
Popular Posts:
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
How to download and install javamail-1_2.zip? The JavaMail API is a set of abstract APIs that model ...
The JDT project provides the tool plug-ins that implement a Java IDE supporting the development of a...
JDK 17 jdk.compiler.jmod is the JMOD file for JDK 17 Compiler tool, which can be invoked by the "jav...
What Is jsse.jar (JDK 6) Java Secure Socket Extension? jsse.jar, Java Secure Socket Extension, is Ja...