OutputStream.
This is class is not thread-safe. The update method may only be used from a
single thread. Updates are sent only as frequently as update() is
invoked by the caller, and are capped at no more than 2 times per second by
requiring at least 500 milliseconds between updates.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private String | |
| private long | |
| private final OutputStream | |
| private boolean | |
| private int | |
| private static final char[] | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private void | |
| public void | |
| private void |
| MIN_REFRESH_MILLIS | back to summary |
|---|---|
| private static final long MIN_REFRESH_MILLIS | |
| msg | back to summary |
|---|---|
| private String msg | |
| nextUpdateMillis | back to summary |
|---|---|
| private long nextUpdateMillis | |
| out | back to summary |
|---|---|
| private final OutputStream out | |
| shown | back to summary |
|---|---|
| private boolean shown | |
| state | back to summary |
|---|---|
| private int state | |
| STATES | back to summary |
|---|---|
| private static final char[] STATES | |
| write | back to summary |
|---|---|
| private boolean write | |
| ProgressSpinner | back to summary |
|---|---|
| public ProgressSpinner(OutputStream out) Initialize a new spinner.
| |
| beginTask | back to summary |
|---|---|
| public void beginTask(String title, long delay, TimeUnit delayUnits) Begin a time consuming task. | |
| endTask | back to summary |
|---|---|
| public void endTask(String result) Denote the current task completed.
| |
| send | back to summary |
|---|---|
| private void send(long now) | |
| update | back to summary |
|---|---|
| public void update() Update the spinner if it is showing. | |
| write | back to summary |
|---|---|
| private void write(String s) | |