Code example for File

Methods: lastModified

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