public class LZMADecompressor extends Object implements com.google.gwt.core.client.Scheduler.RepeatingCommand
| Constructor and Description |
|---|
LZMADecompressor(InputStream input,
OutputStream output)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute()
Process the next chunk of data.
|
IOException |
getException()
Get the exception thrown during the previous execution round, if any.
|
double |
getProgress()
Determine how much of the output data has been generated so far.
|
public LZMADecompressor(InputStream input, OutputStream output) throws IOException
Decompression will stop when one of the following is true:
input is reachedThe input and output streams will not be closed when the operation completes.
input - compressed inputoutput - uncompressed outputIOException - if input or output causes an exceptionIOException - if the compressed data is truncated or corruptedpublic boolean execute()
IOException is thrown during processing,
this returns false and getException() will return the caught exception.execute in interface com.google.gwt.core.client.Scheduler.RepeatingCommandtrue if there is more work to do, otherwise falseIllegalStateException - if this compression operation has already completedpublic double getProgress()
-1 was encoded in the compressed data, then this always returns zero.public IOException getException()
null if none was ever thrownCopyright © 2015. All rights reserved.