Code example for JarEntry

Methods: getName

0
	} 
	 
	public BundleEntry(Bundle b, JarEntry j) {
		jarentry=j;
		_bundle = b;
		_name = j.getName();
	} 
	 
	public void setName(String name) {
		_name = name;
	} 
	public InputStream getInputStream() throws FileNotFoundException, IOException {
		if (fileentry!=null) {
			logger.info("Streaming from file : "+fileentry.getPath());
			return new FileInputStream(fileentry);
		} 
		else { 
			logger.debug("Streaming from jar entry : "+jarentry.getName());
			return _bundle.getImageStream(jarentry);
		} 
Experience pair programming with AI  Get Codota for Java