Package com.aspose.zip
Class ZstandardSaveOptions
- java.lang.Object
-
- com.aspose.zip.ZstandardSaveOptions
-
public class ZstandardSaveOptions extends Object
Settings for ZStandard archive.
-
-
Constructor Summary
Constructors Constructor Description ZstandardSaveOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event<ProgressEventArgs>getCompressionProgressed()Gets an event that is raised when a portion of raw stream compressed.voidsetCompressionProgressed(Event<ProgressEventArgs> value)Sets an event that is raised when a portion of raw stream compressed.
-
-
-
Method Detail
-
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:
- an event that is raised when a portion of raw stream compressed
-
setCompressionProgressed
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:
value- an event that is raised when a portion of raw stream compressed
-
-