SecureBlackbox 2020 Java Edition

Questions / Feedback?

Progress Event

Fires periodically during the data transfer.

Syntax

public class DefaultRestclientEventListener implements RestclientEventListener {
  ...
  public void progress(RestclientProgressEvent e) {}
  ...
}

public class RestclientProgressEvent {
  public long total;
  public long current;
  public boolean cancel;
}

Remarks

Use this event to check the progress of an upload or download operation. Total indicates the total number of bytes to be transferred; Current specifies how much data has been transferred so far, and Cancel gives you a chance to cancel the operation.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 Java Edition - Version 20.0 [Build 8156]