|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.util.ProgressPrinter
public class ProgressPrinter
Class used to simulate the behaviour of a progress bar on an OutputStream.
| Field Summary | |
|---|---|
(package private) int |
currentValue
|
private static boolean |
DEBUG
Debug flag |
(package private) int |
numberOfSteps
|
(package private) PrintStream |
out
|
(package private) boolean |
started
|
| Constructor Summary | |
|---|---|
ProgressPrinter(PrintStream out)
Constructor. |
|
ProgressPrinter(PrintStream out,
int numberOfSteps)
Constructor. |
|
| Method Summary | |
|---|---|
void |
processFinished()
Called when the process is finished. |
void |
progressChanged(int newValue)
Called when the progress has changed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final boolean DEBUG
int currentValue
int numberOfSteps
PrintStream out
boolean started
| Constructor Detail |
|---|
public ProgressPrinter(PrintStream out,
int numberOfSteps)
out - the stream used for outputnumberOfSteps - the number of steps until the process is over (the
number of characters printed for a full run)public ProgressPrinter(PrintStream out)
out - | Method Detail |
|---|
public void processFinished()
ProgressListener
processFinished in interface ProgressListenerpublic void progressChanged(int newValue)
ProgressListener
progressChanged in interface ProgressListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||