Example usage for java.util.zip ZipEntry hashCode

List of usage examples for java.util.zip ZipEntry hashCode

Introduction

In this page you can find the example usage for java.util.zip ZipEntry hashCode.

Prototype

public int hashCode() 

Source Link

Document

Returns the hash code value for this entry.

Usage

From source file:Main.java

public static void main(String[] args) throws Exception {
    String zipname = "data.zip";
    ZipFile zipFile = new ZipFile(zipname);
    Enumeration enumeration = zipFile.entries();
    while (enumeration.hasMoreElements()) {
        ZipEntry zipEntry = (ZipEntry) enumeration.nextElement();
        System.out.println(zipEntry.hashCode());
    }//from www.j  ava  2 s .  c o m
}

From source file:be.fedict.eid.dss.document.zip.ZIPDSSDocumentService.java

private String getResourceId(ZipEntry zipEntry) {

    return String.valueOf(zipEntry.hashCode());
}