Example usage for java.util.zip ZipEntry clone

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

Introduction

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

Prototype

public Object clone() 

Source Link

Document

Returns a copy of 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.clone());
    }/*from w  w w  .j  av  a 2 s . c  om*/
}