de.schlichtherle.io.samples
Class Decrypt
java.lang.Object
de.schlichtherle.io.samples.CommandLineUtility
de.schlichtherle.io.samples.Decrypt
public class Decrypt
- extends CommandLineUtility
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.
- Since:
- TrueZIP 6.5
- Version:
- $Id: Decrypt.java 06f3ba684701 2010/11/04 01:15:55 christian $
- Author:
- Christian Schlichtherle
|
Method Summary |
static void |
main(String[] args)
Equivalent to System.exit(new Decrypt().run(args));. |
boolean |
runWithException(String[] args)
Runs this command line utility. |
| 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
- See Also:
- Constant Field Values
resources
private static final ResourceBundle resources
Decrypt
public Decrypt()
Decrypt
public Decrypt(OutputStream out,
OutputStream err,
boolean autoFlush)
main
public static void main(String[] args)
- Equivalent to
System.exit(new Decrypt().run(args));.
runWithException
public boolean runWithException(String[] args)
throws Decrypt.IllegalUsageException,
IOException
- Description copied from class:
CommandLineUtility
- Runs this command line utility.
Throws an exception if an error occurs.
- Specified by:
runWithException in class CommandLineUtility
- Parameters:
args - A non-empty array of Unix-like commands and optional
parameters.
- Returns:
false iff the command is a test which fails,
true otherwise.
- Throws:
IOException - On any I/O related exception.
Decrypt.IllegalUsageException
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.