|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.schlichtherle.Decrypt
public class Decrypt
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.
Nested Class Summary | |
---|---|
protected static class |
de.schlichtherle.CommandLineUtility.ProgressMonitor
|
class |
Decrypt.IllegalUsageException
|
Field Summary | |
---|---|
protected PrintStream |
err
The print stream for error output. |
protected PrintStream |
out
The print stream for standard output. |
protected de.schlichtherle.CommandLineUtility.ProgressMonitor |
progressMonitor
The command line progress monitor. |
Constructor Summary | |
---|---|
Decrypt()
|
|
Decrypt(OutputStream out,
OutputStream err,
boolean autoFlush)
|
Method Summary | |
---|---|
static void |
main(String[] args)
Equivalent to System.exit(new Decrypt().run(args)); . |
int |
run(String[] args)
Runs this command line utility. |
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 |
Field Detail |
---|
protected final PrintStream out
protected final PrintStream err
protected final de.schlichtherle.CommandLineUtility.ProgressMonitor progressMonitor
Constructor Detail |
---|
public Decrypt()
public Decrypt(OutputStream out, OutputStream err, boolean autoFlush)
Method Detail |
---|
public static void main(String[] args)
System.exit(new Decrypt().run(args));
.
public boolean runWithException(String[] args) throws Decrypt.IllegalUsageException, IOException
args
- A non-empty array of Unix-like commands and optional
parameters.
false
iff the command is a test which fails,
true
otherwise.
IOException
- On any I/O related exception.
Decrypt.IllegalUsageException
public final int run(String[] args)
args
- A non-empty array of Unix-like commands and optional
parameters.
1
iff the command fails,
0
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |