Parses a JAR file and returns a list of all classes founds using a map
class name => ASM ClassReader. Class names are in the form "android.view.View".
TreeMap<String, ClassReader> classes = new TreeMap<String, ClassReader>();
ZipFile zip = new ZipFile(inputJarPath);
Enumeration<? extends ZipEntry> entries = zip.entries();
ZipEntry entry;
while (entries.hasMoreElements()) {
entry = entries.nextElement();
if (entry.getName().endsWith(".class")) {
ClassReader cr = new ClassReader(zip.getInputStream(entry));
String className = classReaderToAsmName(cr);
classes.put(className, cr);
}
}
return classes;