while (jarContentIter.hasNext()) {
String file = (String) jarContentIter.next();
if (file.startsWith(pkgFileName) && file.endsWith(".class")) {
file = removeDotClass(file);
if (recurse ||
file.indexOf('/', pkgFileName.length() + 1) < 0)
{
/*
* Include the file if it is in a subdirectory only if
* recurse is true. Otherwise, check that the class
* file matches the package name exactly.