IsoLoadOptions
Contents
[
Hide
]Inheritance: java.lang.Object
public class IsoLoadOptions
Options with which IsoArchive is loaded from compressed file. Contains event raised on extraction.
Constructors
Constructor | Description |
---|---|
IsoLoadOptions() |
Methods
Method | Description |
---|---|
getEntryExtractionProgressed() | Gets an event that is raised when some bytes have been extracted. |
setEntryExtractionProgressed(Event<ProgressEventArgs> value) | Sets an event that is raised when some bytes have been extracted. |
IsoLoadOptions()
public IsoLoadOptions()
getEntryExtractionProgressed()
public final Event<ProgressEventArgs> getEntryExtractionProgressed()
Gets an event that is raised when some bytes have been extracted.
long length = 10_000_000;
IsoLoadOptions loadOptions = new IsoLoadOptions();
loadOptions.setEntryExtractionProgressed((sender, args) -> {
int percent = (int)((100 * args.getProceededBytes()) / length);
});
IsoArchive archive = new IsoArchive("archive.iso", loadOptions);
Event sender is the IsoEntry instance which extraction is progressed.
Returns: Event - an event that is raised when some bytes have been extracted
setEntryExtractionProgressed(Event<ProgressEventArgs> value)
public final void setEntryExtractionProgressed(Event<ProgressEventArgs> value)
Sets an event that is raised when some bytes have been extracted.
long length = 10_000_000;
IsoLoadOptions loadOptions = new IsoLoadOptions();
loadOptions.setEntryExtractionProgressed((sender, args) -> {
int percent = (int)((100 * args.getProceededBytes()) / length);
});
IsoArchive archive = new IsoArchive("archive.iso", loadOptions);
Event sender is the IsoEntry instance which extraction is progressed.
Parameters:
Parameter | Type | Description |
---|---|---|
value | com.aspose.zip.Event<com.aspose.zip.ProgressEventArgs> | an event that is raised when some bytes have been extracted |