get Zip Entries Enumeration - Android File Input Output

Android examples for File Input Output:Zip File

Description

get Zip Entries Enumeration

Demo Code


//package com.java2s;
import java.io.*;

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();

    }//www . j  a v  a 2 s  . c o m
}

Related Tutorials