PregoZip Using Zip Routines in Java - by Markus Wilthaner - 4ADV 2002/2003 - Release: 2002-10-11Synopsis:A console-based application, written in Java. The user can enter a source directory, a target archive and an optional source archive. The program creates the target archive and copies the files from the directory into the archive. If the user specified a source archive, the files are only added if they are not in the source archiv yet or if the file in the source archive is older. The user should also be able to specifiy an unlimited amount of Include and Exclude filters (e.g. *.doc). Command-line paramenters: Homework Requirements (in German):Datum: 2002-09-13 Konsolenprogramm in Java, basierend auf Zip - Beispiel (siehe Dokumentation Seite 10). Dem Programm wird ein Quellverzeichnis, ein Zielarchiv und optional ein Quellarchiv übergeben. Das Zielarchiv wird angelegt. Dann durchläuft das Programm das angegebene Directory und dessen Subdirectories und archiviert die Dateien in das Archiv. Falls der User ein Quellarchiv angibt, wird vor dem Hinzufügen der Dateien in das neue Archiv geprüft, ob die Datei schon im alten Archiv existiert. Falls die Datei im alten Archiv nicht existiert oder älter ist, soll die Datei ins neue Archiv übernommen werden. Ansonsten kann die Datei ausgelassen werden. Umfang:
Die Kommandozeile muss über folgende Features verfügen: Kommandozeile: Programmname <Quellverzeichnis> <Zielarchiv> [Quellarchiv] [-i <filter1><filter2>...] [-e <filter1><filter2>...]
Die Anzahl der Filter soll, soweit möglich, nicht limitiert sein. Der Benutzer kann sowohl –e als auch –i verwenden, er kann aber auch beide Optionen weglassen. Das genaue Format der Kommandozeile ist nicht vorgeschrieben und kann beliebig variiert werden! ExecutablesExecutable: Download the executable and start it with the command java -jar pregozip.jar
<command line parameters>. Sourcefiles:The program uses 5 classes. Click on the classes to download the sourcecode:
DocumentationThis diagram shows how the classes use each other:
The sourcefiles document each function, it's purpose, parameters and return values. The sourcefiles also including rudimentary inline-comments. Java Documentation All public functions, the classes and the inheritance structure are documented in the javadoc of PregoZip.
(c) 2002 by Markus Wilthaner - E-Mail: contact@wilth.net |