ZstandardSaveOptions

Inheritance: java.lang.Object

public class ZstandardSaveOptions

Settings for ZStandard archive.

Constructors

ConstructorDescription
ZstandardSaveOptions()

Methods

MethodDescription
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:

ParameterTypeDescription
valuecom.aspose.zip.Event<com.aspose.zip.ProgressEventArgs>an event that is raised when a portion of raw stream compressed