List of utility methods to do Jar Usage
void | process(Object obj) process JarEntry entry = (JarEntry) obj; String name = entry.getName(); long size = entry.getSize(); long compressedSize = entry.getCompressedSize(); System.out.println(name + "\t" + size + "\t" + compressedSize); |
void | processJarFile(String f) process Jar File try { JarFile jarF = new JarFile(f); Enumeration<JarEntry> je = jarF.entries(); while (je.hasMoreElements()) { JarEntry entry = je.nextElement(); String name = entry.getName(); long size = entry.getSize(); long compressedSize = entry.getCompressedSize(); ... |
void | recordFactoryDefault(String className, Attributes attributes) record Factory Default if (isSet(attributes, "Default-Factory")) { defaultFactoryClassName = className; |
void | safeClose(JarFile jf) safe Close try { if (jf != null) { jf.close(); } catch (Exception e) { |
void | scanJarPackageClass(List scan Jar Package Class Enumeration<JarEntry> entries = jar.entries(); while (entries.hasMoreElements()) { JarEntry entry = entries.nextElement(); String name = entry.getName(); if (name.charAt(0) == '/') { name = name.substring(1); if (name.startsWith(packageDirName)) { ... |