get Zip Entries Enumeration - Java File Path IO

Java examples for File Path IO:Zip File

Description

get Zip Entries Enumeration

Demo Code


//package com.java2s;

import java.io.File;

import java.io.IOException;

import java.util.Enumeration;

import java.util.zip.ZipException;
import java.util.zip.ZipFile;

public class Main {
    public static Enumeration<?> getEntriesEnumeration(File zipFile)
            throws ZipException, IOException {
        ZipFile zf = new ZipFile(zipFile);
        return zf.entries();

    }/*w  w w . j a v a 2s.  c o  m*/
}

Related Tutorials