Code example for JarEntry

Methods: getName

0
	} 
 
	private static void extractClassFromJar(final String jar, final String packageName,
			final ArrayList<String> classes, JarEntry jarEntry) throws ExceptionString className = jarEntry.getName();
		if (className.endsWith(".class"))
		{ 
			className = className.substring(0, className.length() - ".class".length());
			if (className.startsWith(packageName))
			{ 
				try 
				{ 
					classes.add(Class.forName(className.replace('/', '.')).toString());
				} 
				catch (Exception cnfe)
				{ 
					throw new Exception("unable to find class named " + className.replace('/', '.') + "' within jar '"
							+ jar + "'");
				} 
Connect your IDE to all the code out there  Get Codota for Java