void report() {
      if(totalSize != -1 && totalSize != -0) {
        long time = System.currentTimeMillis();

        if( count == totalSize ) {
          progressConsumer.accept(100);
        }

        if( time > lastTime + delta ) {
          int p = (int)(count * 100 / totalSize);
          progressConsumer.accept(p);
          lastTime = time;
        }
      }
    }
Simple task handler which performs the download of a file (given its URL).

@since Sep 06, 2018
src/main/java/com/creactiviti/piper/taskhandler/io/Download.java