Interface IOUtilities.TransferCallback

Enclosing class:
IOUtilities

public static interface IOUtilities.TransferCallback
Callback interface for monitoring and controlling byte transfers.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bytesTransferred(byte[] bytes, int count)
    Called when bytes are transferred during an operation.
    boolean
    Checks if the transfer operation should be cancelled.
  • Method Details

    • bytesTransferred

      void bytesTransferred(byte[] bytes, int count)
      Called when bytes are transferred during an operation.
      Parameters:
      bytes - the buffer containing the transferred bytes
      count - the number of bytes actually transferred
    • isCancelled

      boolean isCancelled()
      Checks if the transfer operation should be cancelled.
      Returns:
      true if the transfer should be cancelled, false to continue