| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.medsea.util.ZipJarUtil
public class ZipJarUtil
Utility class providing methods to work with Zip and Jar Files
| Constructor Summary | |
|---|---|
| ZipJarUtil() | |
| Method Summary | |
|---|---|
| static Collection | getEntries(File file)Get all entries from a Zip or Jar file. | 
| static Collection | getEntries(String fileName)Get all entries from a Zip or Jar file. | 
| static Collection | getEntries(URL url)Get all entries from a Zip or Jar file identified by a URL. | 
| static Collection | getEntries(ZipFile zipFile)Get all entries from a zip or jar file. | 
| static InputStream | getInputStreamForURL(URL url)Get an InputStream from the zip file capable of reading from | 
| static void | main(String[] args) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ZipJarUtil()
| Method Detail | 
|---|
public static InputStream getInputStreamForURL(URL url)
                                        throws IOException
url - 
IOException
public static Collection getEntries(String fileName)
                             throws ZipException,
                                    IOException
fileName - path identifying a zip or jar file
ZipException
IOException
public static Collection getEntries(File file)
                             throws ZipException,
                                    IOException
file - identifies a zip or jar file
ZipException
IOException
public static Collection getEntries(URL url)
                             throws ZipException,
                                    IOException
url - identifying a jar or zip file. Can also refer to an entry, which is ignored.
ZipException
IOException
public static Collection getEntries(ZipFile zipFile)
                             throws ZipException,
                                    IOException
zipFile - 
ZipException
IOException
public static void main(String[] args)
                 throws Exception
Exception| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||