com.partnersoft.tools
Class Unzipper
java.lang.Object
com.partnersoft.tools.Unzipper
public class Unzipper
- extends java.lang.Object
Unzips a zip file into a directory. Simple enough.
- Author:
- Paul Reavis Copyright 2000 Partner Software, Inc.
|
Method Summary |
static void |
main(java.lang.String[] argv)
|
static void |
unzip(java.io.File zipFile,
java.io.File outputDir)
|
static void |
unzip(java.io.File zipFile,
java.io.File outputDir,
int discardDepth)
Kind of odd, unzips the given zipfile into the given output directory but
discards the given amount of directory depth from the top. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Unzipper
public Unzipper()
main
public static void main(java.lang.String[] argv)
unzip
public static void unzip(java.io.File zipFile,
java.io.File outputDir)
throws java.io.IOException
- Throws:
java.io.IOException
unzip
public static void unzip(java.io.File zipFile,
java.io.File outputDir,
int discardDepth)
throws java.io.IOException
- Kind of odd, unzips the given zipfile into the given output directory but
discards the given amount of directory depth from the top. This is used
in archives where there's always a top level root directory, that is
stored in the zipfile, but that you want to discard and use your own
directory when you unpack.
- Parameters:
zipFile - outputDir - discardDepth -
- Throws:
java.io.IOException