Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
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, ≈18🔥, 0💬
Popular Posts:
What Is commons-lang3-3.1.jar? commons-lang3-3.1.jar is the JAR file for Apache Commons Lang 3.1, wh...
Java-WebSocket Source Code Files are provided in the source package file, java-websocket-1.5.4-src .z...
Where to get the Java source code for Connector/J 8.0 Core API module? Java source code files for Co...
How to show the XML parsing flow with sax\DocumentTracer.java provided in the Apache Xerces package?...
jTDS JDBC Driver Source Code Files are provided in the source package file, jtds-1.3.1-fyi.zip. You ...