Progress Event
Reports the progress of data compression.
Syntax
public class DefaultArchivewriterEventListener implements ArchivewriterEventListener { ... public void progress(ArchivewriterProgressEvent e) {} ... } public class ArchivewriterProgressEvent { public long processed; public long total; public long overallProcessed; public long overallTotal; public boolean cancel; }
Remarks
Subscribe to this event to be notified about compression progress.
Processed and Total report the progress of compression of the current entry; OverallProcessed and OverallTotal report the progress of the whole operation. Set Cancel to true to stop the operation.