public class AdaptiveStdErrProgressWriter extends StdErrProgressWriter
StdErrProgressWriter
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedList<java.lang.Long> |
backtraceList |
private int |
backtraceSteps |
currentStep, finished, format, message, messageLength, newLineWidth, screenWidth, startDate, stepWidth, totalSteps
Constructor and Description |
---|
AdaptiveStdErrProgressWriter(int totalSteps,
java.lang.String message) |
AdaptiveStdErrProgressWriter(int totalSteps,
java.lang.String message,
int stepWidth) |
AdaptiveStdErrProgressWriter(int totalSteps,
java.lang.String message,
int stepWidth,
int newLineWidth) |
Modifier and Type | Method and Description |
---|---|
void |
progress(int currentStep)
Progress by the given steps.
|
void |
setBacktraceWindow(double window) |
void |
setBacktraceWindow(int steps) |
getCurrentStep, getMessage, getSteps, insertColumn, insertRow, progress, progress, progress, setCurrentStep
private java.util.LinkedList<java.lang.Long> backtraceList
private int backtraceSteps
public AdaptiveStdErrProgressWriter(int totalSteps, java.lang.String message)
totalSteps
- the number of Stepsmessage
- message to displaypublic AdaptiveStdErrProgressWriter(int totalSteps, java.lang.String message, int stepWidth)
totalSteps
- the number of Stepsmessage
- message to displaystepWidth
- How often the message should be updated. Use a bigger stepWidth to improve the performance. The
first and last step are printed regardless of the value of the stepWith.public AdaptiveStdErrProgressWriter(int totalSteps, java.lang.String message, int stepWidth, int newLineWidth)
totalSteps
- the number of Stepsmessage
- message to displaystepWidth
- How often the message should be updated. Use a bigger stepWidth to improve the performance. The
first and last step are printed regardless of the value of the stepWith.newLineWidth
- add a newline everypublic void progress(int currentStep)
ProgressListener
progress
in interface ProgressListener
progress
in class StdErrProgressWriter
public void setBacktraceWindow(int steps)
public void setBacktraceWindow(double window)