public class

ZipUtils

extends Object
java.lang.Object
   ↳ com.atlassian.jira.util.ZipUtils

Class Overview

Simple utility functions for dealing with zip files.

Summary

Public Constructors
ZipUtils()
Public Methods
static InputStream streamForZipFileEntry(File zipFile, String entryName)
Retrieves an input stream reading from a named entry in a zip file.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ZipUtils ()

Public Methods

public static InputStream streamForZipFileEntry (File zipFile, String entryName)

Retrieves an input stream reading from a named entry in a zip file.

Parameters
zipFile the path to the zip file.
entryName the name of the entry to which an input stream should be returned.
Returns
  • an input stream reading from the named entry in the specified file.
Throws
IOException if the zip file is unreadable, or if it does not contained the named entry.