Code example for ZipEntry

Methods: getTime

0
    public long getLastModified(String name) throws IOException {
        ZipEntry entry = jarFile.getEntry(name);
        if (entry == null) {
            return -1; 
        } else { 
            return entry.getTime();
        } 
    } 
 
    @Override 
    public String getURL(String entry) {
        StringBuilder result = new StringBuilder("jar:");
        result.append(getJarFileURL().toExternalForm());
        result.append("!/");
        result.append(entry);
 
        return result.toString();
    } 
 
    @Override