public class CompressDirectory extends Object
Date: 18 MAY 2007 Time: 1337:32 Author: Terry D. Norbraten Comments: Initial Date: 31 MAY 2007 Time: 2113Z Author: Terry D. Norbraten Comments: 1) Refactor to coerce zipping of empty directories to match exact project folder paths in compressed format 2) Now include user data in compressed project file name 3) Refactored to take out extra "ProjectName" embedded folder when making .zip archive. Archive will now extract to folder with name ProjectLocation.DTG.LastnameFirstname. Date: 26 JUN 2007 Time: 2331Z Author: Terry D. Norbraten Comments: 1) Updated comment on obtaining user data 2) Obtain static return of DTG
Constructor and Description |
---|
CompressDirectory(String[] args)
Creates a new instance of CompressDirectory
|
Modifier and Type | Method and Description |
---|---|
void |
doDirectoryZip(String dir2zip,
ZipOutputStream zos)
Zips the given directory.
|
static void |
main(String[] args)
Command line entry point
|
public CompressDirectory(String[] args)
args
- args[0] contains the path of the directory to zippublic void doDirectoryZip(String dir2zip, ZipOutputStream zos)
dir2zip
- the directory to zipzos
- the ZipOutputStream to write topublic static void main(String[] args)
args
- command line arguments (if any)