de.schlichtherle.truezip.sample.file.app
Class Decrypt
java.lang.Object
de.schlichtherle.truezip.file.TApplication<RuntimeException>
de.schlichtherle.truezip.sample.file.app.Application
de.schlichtherle.truezip.sample.file.app.Decrypt
public class Decrypt
- extends Application
Decrypts the contents of the RAES file provided as the first argument
into the file provided as the second argument for the main method.
Please note that you should not use this utility to decrypt an RAES
encrypted ZIP file (usually a file with a ".tzp" or
".zip.rae" suffix) back to a plain ZIP file.
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 decrypt an RAES encrypted ZIP file to a plain ZIP file, use the
cp command of the Nzip class instead.
This class knows about the correct character set charsets for the
various flavours of ZIP compatible files.
- Author:
- Christian Schlichtherle
|
Method Summary |
static void |
main(String[] args)
Equivalent to System.exit(new Decrypt().run(args));. |
protected int |
runChecked(String[] args)
Runs this command line utility. |
| Methods inherited from class de.schlichtherle.truezip.file.TApplication |
run |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_NAME
private static final String CLASS_NAME
resources
private static final ResourceBundle resources
Decrypt
public Decrypt()
main
public static void main(String[] args)
throws FsSyncException
- Equivalent to
System.exit(new Decrypt().run(args));.
- Throws:
FsSyncException
runChecked
protected int runChecked(String[] args)
throws Application.IllegalUsageException,
IOException
- Description copied from class:
Application
- Runs this command line utility.
Throws an exception if an error occurs.
Avoid 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!
- Specified by:
runChecked in class Application
- Parameters:
args - an array of arguments for this command line utility.
- Returns:
- A negative integer in order to continue calling this method
in a loop.
Otherwise, the return value is used as the
exit status of the VM.
- Throws:
Application.IllegalUsageException - on any exception.
IOException
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.