public class Encrypt extends Application
Please note that you should not use this utility to encrypt a plain
ZIP file to an RAES encrypted ZIP file (usually a files with a
".tzp" or ".zip.rae" suffix).
This is because RAES encrypted ZIP files use the "UTF-8"
as their character set, whereas plain ZIP files use "IBM437",
a.k.a. "CP437".
To encrypt a plain ZIP file to an RAES encrypted ZIP file, use the
cp command of the Nzip class instead.
This class knows about the correct character sets for the various
flavours of ZIP compatible files.
Application.IllegalUsageException, Application.ProgressMonitor| Modifier and Type | Field and Description |
|---|---|
private static String |
CLASS_NAME |
private static ResourceBundle |
resources |
err, monitor, out| Constructor and Description |
|---|
Encrypt() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Equivalent to
System.exit(new Encrypt().run(args));. |
protected int |
runChecked(String[] args)
Runs this command line utility.
|
setup, sync, workrunprivate static final String CLASS_NAME
private static final ResourceBundle resources
public static void main(String[] args) throws FsSyncException
System.exit(new Encrypt().run(args));.FsSyncExceptionprotected int runChecked(String[] args) throws Application.IllegalUsageException, IOException
ApplicationAvoid repeating this method and updating the same archive file upon each call! This would degrade the overall performance from O(n) to O(m*n), where m is the number of new or modified entries and n is the number of all entries in the archive file!
runChecked in class Applicationargs - an array of arguments for this command line utility.exit status of the VM.Application.IllegalUsageException - on any exception.IOExceptionCopyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.