tig
Class Zip
- java.lang.Object
-
- tig.Zip
-
- All Implemented Interfaces:
- GeneralConstants
public abstract class Zip extends java.lang.Object implements GeneralConstants
Contains methods used to zip and unzip a set of files.
Written from code found in "Thinking in java", 2nd edition.
-
-
Constructor Summary
Constructors Constructor and Description Zip()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidunzipFile(java.lang.String zipFile, java.lang.String destinationDir)Unzips the file to the destination directory.static voidzipFiles(java.lang.String outputFile, java.lang.String[] inputFiles)Zips the input files to a single Zip archive.
-
-
-
Method Detail
-
zipFiles
public static void zipFiles(java.lang.String outputFile, java.lang.String[] inputFiles) throws java.io.IOExceptionZips the input files to a single Zip archive.- Throws:
java.io.IOException
-
unzipFile
public static void unzipFile(java.lang.String zipFile, java.lang.String destinationDir) throws java.io.IOExceptionUnzips the file to the destination directory.- Throws:
java.io.IOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG