ZstandardSaveOptions
Contents
[
Hide
]Inheritance: java.lang.Object
public class ZstandardSaveOptions
Settings for ZStandard archive.
Constructors
Constructor | Description |
---|---|
ZstandardSaveOptions() |
Methods
Method | Description |
---|---|
getCompressionProgressed() | Gets an event that is raised when a portion of raw stream compressed. |
setCompressionProgressed(Event<ProgressEventArgs> value) | Sets an event that is raised when a portion of raw stream compressed. |
ZstandardSaveOptions()
public ZstandardSaveOptions()
getCompressionProgressed()
public Event<ProgressEventArgs> getCompressionProgressed()
Gets an event that is raised when a portion of raw stream compressed.
File source = new File("huge.bin");
ZstandardSaveOptions settings = new ZstandardSaveOptions();
settings.setCompressionProgressed((sender, args) -> {
int percent = (int)((100 * args.getProceededBytes()) / source.length());
});
Returns: Event - an event that is raised when a portion of raw stream compressed
setCompressionProgressed(Event<ProgressEventArgs> value)
public void setCompressionProgressed(Event<ProgressEventArgs> value)
Sets an event that is raised when a portion of raw stream compressed.
File source = new File("huge.bin");
ZstandardSaveOptions settings = new ZstandardSaveOptions();
settings.setCompressionProgressed((sender, args) -> {
int percent = (int)((100 * args.getProceededBytes()) / source.length());
});
Parameters:
Parameter | Type | Description |
---|---|---|
value | com.aspose.zip.Event<com.aspose.zip.ProgressEventArgs> | an event that is raised when a portion of raw stream compressed |