|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IArchiveExtractCallback
Main callback interface for extraction operations.
If you want to provide a password to extract files, you should also implement ICryptoGetTextPassword
within
your IArchiveExtractCallback-implementation.
Method Summary | |
---|---|
ISequentialOutStream |
getStream(int index,
ExtractAskMode extractAskMode)
Return sequential output stream for the file with index index . |
void |
prepareOperation(ExtractAskMode extractAskMode)
Prepare operation. |
void |
setOperationResult(ExtractOperationResult extractOperationResult)
Set result of extraction operation of the file with index index from last call of
getStream(int, ExtractAskMode) . |
Methods inherited from interface net.sf.sevenzipjbinding.IProgress |
---|
setCompleted, setTotal |
Method Detail |
---|
ISequentialOutStream getStream(int index, ExtractAskMode extractAskMode) throws SevenZipException
index
.
index
- index of the item to extractextractAskMode
- extract ask mode
ISequentialOutStream
sequential out stream or null
to skip the
extraction of the current item (with index index
) and proceed with the next one
SevenZipException
- in error case. If this method ends with an exception, the current operation will be reported to 7-Zip
as failed. There are no guarantee, that there are no further call back methods will get called. The
first and last thrown exceptions will be saved and thrown later on from the originally called method
such as ISevenZipInArchive.extract()
or SevenZip.openInArchive()
. Up to
four exceptions depending on the situation can be saved for further analysis. See
SevenZipException
and SevenZipException.printStackTraceExtended()
for details.void prepareOperation(ExtractAskMode extractAskMode) throws SevenZipException
getStream(int, ExtractAskMode)
.
extractAskMode
- extract ask mode
SevenZipException
- in error case. If this method ends with an exception, the current operation will be reported to 7-Zip
as failed. There are no guarantee, that there are no further call back methods will get called. The
first and last thrown exceptions will be saved and thrown later on from the originally called method
such as ISevenZipInArchive.extract()
or SevenZip.openInArchive()
. Up to
four exceptions depending on the situation can be saved for further analysis. See
SevenZipException
and SevenZipException.printStackTraceExtended()
for details.void setOperationResult(ExtractOperationResult extractOperationResult) throws SevenZipException
index
from last call of
getStream(int, ExtractAskMode)
.
extractOperationResult
- result of operation
SevenZipException
- in error case. If this method ends with an exception, the current operation will be reported to 7-Zip
as failed. There are no guarantee, that there are no further call back methods will get called. The
first and last thrown exceptions will be saved and thrown later on from the originally called method
such as ISevenZipInArchive.extract()
or SevenZip.openInArchive()
. Up to
four exceptions depending on the situation can be saved for further analysis. See
SevenZipException
and SevenZipException.printStackTraceExtended()
for details.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |