public void inspectJar(String path) throws IOException {
        JarFile jarFile = new JarFile(path);
        Enumeration<JarEntry> jarEntries = jarFile.entries();
        while (jarEntries.hasMoreElements()) {
            JarEntry jarEntry = jarEntries.nextElement();
            String entryName = jarEntry.getName();
            InputStream entryStream = null;
            if (entryName.endsWith(".class")) {
                try {
                    entryStream = jarFile.getInputStream(jarEntry);
                    inspectClass(entryStream, jarFile.getName());

                } finally {
                    if (entryStream != null) entryStream.close();
                }
            }
        }
    }