BufferedInputStream inStream = new BufferedInputStream(new FileInputStream(inPath)); byte[] bytes = new byte[(int)inPath.length()]; inStream.read(bytes); UnwovenClassFile resourceFile = new UnwovenClassFile(new File(outDir, name).getAbsolutePath(), bytes); addResource(resourceFile); inStream.close();
if (!name.startsWith("CVS/") && (-1 == name.indexOf("/CVS/")) && !name.endsWith("/CVS")) {      byte[] bytes = FileUtil.readAsByteArray(inPath); UnwovenClassFile resourceFile = new UnwovenClassFile(new File(outDir, name).getAbsolutePath(), bytes); addResource(name,resourceFile); }
	public void addResource(String name, File inPath, File outDir) throws IOException {		BufferedInputStream inStream = new BufferedInputStream(new FileInputStream(inPath));		byte[] bytes = new byte[(int)inPath.length()];		inStream.read(bytes);		UnwovenClassFile resourceFile = new UnwovenClassFile(new File(outDir, name).getAbsolutePath(), bytes);		addResource(resourceFile);		inStream.close();	}