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

      • getState

        public int getState()
      • setState

        public void setState​(int state)
      • getTotalWork

        public long getTotalWork()
      • setTotalWork

        public void setTotalWork​(long totalWork)
      • getWorkCompleted

        public long getWorkCompleted()
      • updateWorkCompleted

        public void updateWorkCompleted​(long workCompleted)
      • getPercentDone

        public int getPercentDone()
      • setPercentDone

        public void setPercentDone​(int percentDone)
      • getResult

        public int getResult()
      • setResult

        public void setResult​(int result)
      • getFileName

        public String getFileName()
      • setFileName

        public void setFileName​(String fileName)
      • getCurrentOperation

        public int getCurrentOperation()
      • setCurrentOperation

        public void setCurrentOperation​(int currentOperation)
      • getException

        public Throwable getException()
      • setException

        public void setException​(Throwable exception)
      • reset

        public void reset()
      • fullReset

        public void fullReset()
      • isCancelAllTasks

        public boolean isCancelAllTasks()
      • cancelAllTasks

        public void cancelAllTasks()
      • isPause

        public boolean isPause()
      • setPause

        public void setPause​(boolean pause)