Android Unzip File UpZip(String zipFileString, String fileString)

Here you can find the source of UpZip(String zipFileString, String fileString)

Description

Up Zip

Declaration

@SuppressWarnings("resource")
public static java.io.InputStream UpZip(String zipFileString,
        String fileString) throws Exception 

Method Source Code

//package com.java2s;

import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;

public class Main {

    @SuppressWarnings("resource")
    public static java.io.InputStream UpZip(String zipFileString,
            String fileString) throws Exception {
        android.util.Log.v("XZip", "UpZip(String, String)");
        ZipFile zipFile = new ZipFile(zipFileString);
        ZipEntry zipEntry = zipFile.getEntry(fileString);

        return zipFile.getInputStream(zipEntry);

    }/*w  w  w. ja va  2s.c o  m*/
}

Related

  1. upZipSelectedFile(File zipFile, String folderPath, String nameContains)
  2. upZipSelectedFile(File zipFile, String folderPath, String nameContains)
  3. unZip(File srcFile, File targetFile)
  4. unZip(String zipFile, String targetPath)
  5. unZip(String zipfile, String destDir)
  6. UpZip(String zipFileString, String fileString)
  7. UpZip(String zipFileString, String fileString)
  8. unzipArchive(File archive, File outputDir)
  9. UnZipFileToMem(String source)