com.atlassian.jira.util
Class ZipUtils
java.lang.Object
com.atlassian.jira.util.ZipUtils
public class ZipUtils
- extends Object
Simple utility functions for dealing with zip files.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipUtils
public ZipUtils()
streamForZipFileEntry
public static InputStream streamForZipFileEntry(File zipFile,
String entryName)
throws IOException
- 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.
Copyright © 2002-2013 Atlassian. All Rights Reserved.