if (filename.endsWith(".class")) { this.addClassFile(classFile); addedClassFiles.add(classFile);
if (filename.endsWith(".class")) { this.addClassFile(classFile); addedClassFiles.add(classFile); } else if (!entry.isDirectory()) {   addResource(filename,classFile); }  inStream.closeEntry();
	public List addJarFile(File inFile, File outDir, boolean canBeDirectory) throws IOException {//		System.err.println("? addJarFile(" + inFile + ", " + outDir + ")");		List addedClassFiles = new ArrayList();		needToReweaveWorld = true;				// Is this a directory we are looking at?		if (inFile.isDirectory() && canBeDirectory) {			addedClassFiles.addAll(addDirectoryContents(inFile,outDir));		} else {					ZipInputStream inStream = new ZipInputStream(new FileInputStream(inFile)); //??? buffered					while (true) {				ZipEntry entry = inStream.getNextEntry();				if (entry == null) break;							byte[] bytes = FileUtil.readAsByteArray(inStream);				String filename = entry.getName();				UnwovenClassFile classFile = new UnwovenClassFile(new File(outDir, filename).getAbsolutePath(), bytes);				if (filename.endsWith(".class")) {					this.addClassFile(classFile);					addedClassFiles.add(classFile);				}				else if (!entry.isDirectory()) {					/* bug-44190 Copy meta-data */					addResource(filename,classFile);				}				inStream.closeEntry();			}			inStream.close();		}				return addedClassFiles;	}