Code example for JarEntry

Methods: getNameisDirectory

0
		return classes;
	} 
 
	private void addClassFromJar(JarEntry jarEntry, List<Class<?>> classes) {
		if (isMatchingClass(jarEntry)) {
			String fileName = jarEntry.getName();
			if (isValidClassName(fileName)) {
				Class<?> clazz = createClass(fileName);
				if (isNotNull(clazz)) {
					classes.add(clazz);
				} 
			} 
		} 
	} 
 
	private boolean isMatchingClass(JarEntry jarEntry) {
 
		boolean retVal = false;
		if (!jarEntry.isDirectory()) {
			// String name = jarEntry.getName(); 
			// TODO Fix this 
			// Matcher matcher = pattern.matcher(name); 
			retVal = true;
			// retVal = matcher.matches(); 
Connect your IDE to all the code out there  Get Codota for Java