Code example for File

Methods: lastModified

0
		JarFile jarFile = new JarFile(file);
		return jarFile.getInputStream(jarFile.getEntry(getName()));
	} 
 
	public long getLastModified() { 
		return file.lastModified();
	} 
 
	public long getLength() { 
		try { 
			JarFile jarFile = new JarFile(file);
			try { 
				return jarFile.getEntry(getName()).getSize();
			} finally { 
				jarFile.close();
			} 
		} catch (IOException e) {
			return super.getLength(); 
		} 
	}