Package net.lingala.zip4j.progress
Class ProgressMonitor
java.lang.Object
net.lingala.zip4j.progress.ProgressMonitor
If Zip4j is set to run in thread mode, this class helps retrieve current progress
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private ProgressMonitor.Task
private Exception
private String
private boolean
private int
private ProgressMonitor.Result
private ProgressMonitor.State
private long
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
int
getState()
long
long
boolean
boolean
isPause()
private void
reset()
void
setCancelAllTasks
(boolean cancelAllTasks) void
setCurrentTask
(ProgressMonitor.Task currentTask) void
setException
(Exception exception) void
setFileName
(String fileName) void
setPause
(boolean pause) void
setPercentDone
(int percentDone) void
setResult
(ProgressMonitor.Result result) void
setState
(ProgressMonitor.State state) void
setTotalWork
(long totalWork) void
updateWorkCompleted
(long workCompleted)
-
Field Details
-
state
-
totalWork
private long totalWork -
workCompleted
private long workCompleted -
percentDone
private int percentDone -
currentTask
-
fileName
-
result
-
exception
-
cancelAllTasks
private boolean cancelAllTasks -
pause
private boolean pause
-
-
Constructor Details
-
ProgressMonitor
public ProgressMonitor()
-
-
Method Details
-
updateWorkCompleted
public void updateWorkCompleted(long workCompleted) -
endProgressMonitor
public void endProgressMonitor() -
endProgressMonitor
-
fullReset
public void fullReset() -
reset
private void reset() -
getState
-
setState
-
getTotalWork
public long getTotalWork() -
setTotalWork
public void setTotalWork(long totalWork) -
getWorkCompleted
public long getWorkCompleted() -
getPercentDone
public int getPercentDone() -
setPercentDone
public void setPercentDone(int percentDone) -
getCurrentTask
-
setCurrentTask
-
getFileName
-
setFileName
-
getResult
-
setResult
-
getException
-
setException
-
isCancelAllTasks
public boolean isCancelAllTasks() -
setCancelAllTasks
public void setCancelAllTasks(boolean cancelAllTasks) -
isPause
public boolean isPause() -
setPause
public void setPause(boolean pause)
-