Class ProgressMonitor


  • public class ProgressMonitor
    extends Object
    If Zip4j is set to run in thread mode, this class helps retrieve current progress
    • Constructor Detail

      • ProgressMonitor

        public ProgressMonitor()
    • Method Detail

      • updateWorkCompleted

        public void updateWorkCompleted​(long workCompleted)
      • endProgressMonitor

        public void endProgressMonitor()
      • endProgressMonitor

        public void endProgressMonitor​(Exception e)
      • fullReset

        public void fullReset()
      • getTotalWork

        public long getTotalWork()
      • setTotalWork

        public void setTotalWork​(long totalWork)
      • getWorkCompleted

        public long getWorkCompleted()
      • getPercentDone

        public int getPercentDone()
      • setPercentDone

        public void setPercentDone​(int percentDone)
      • getFileName

        public String getFileName()
      • setFileName

        public void setFileName​(String fileName)
      • getException

        public Exception getException()
      • setException

        public void setException​(Exception exception)
      • isCancelAllTasks

        public boolean isCancelAllTasks()
      • setCancelAllTasks

        public void setCancelAllTasks​(boolean cancelAllTasks)
      • isPause

        public boolean isPause()
      • setPause

        public void setPause​(boolean pause)