Code example for JarFile

Methods: getEntrygetInputStream

0
		/* FIXME compatibility code. remove when all plugins are fixed. */ 
		if (name.startsWith("/")) {
			name = name.substring(1);
		} 
 
		ZipEntry entry = tempJarFile.getEntry(name);
		try { 
			return entry != null ? tempJarFile.getInputStream(entry) : null;
		} catch (IOException e) {
			return null; 
		} 
	} 
 
	/** 
	 * Transforms the class name into a file name that can be used to locate 
	 * an entry in the jar file. 
	 *  
	 * @param name 
	 *            The name of the class 
	 * @return The path name of the entry in the jar file 
Contextual code suggestions in your IDE  Get Codota for Java