public class AnsiProgressHandler extends Object implements ProgressHandler
| Modifier and Type | Field and Description |
|---|---|
private static char |
ESC_CODE |
private Map<String,Integer> |
idsToLines |
private PrintStream |
out |
| Constructor and Description |
|---|
AnsiProgressHandler() |
AnsiProgressHandler(PrintStream out) |
| Modifier and Type | Method and Description |
|---|---|
private void |
printProgress(ProgressMessage message)
Displays the upload/download status of multiple image layers the same way the docker CLI does.
|
void |
progress(ProgressMessage message)
This method will be called for each progress message received from Docker.
|
private static final char ESC_CODE
private final PrintStream out
public AnsiProgressHandler()
public AnsiProgressHandler(PrintStream out)
public void progress(ProgressMessage message) throws DockerException
ProgressHandlerprogress in interface ProgressHandlermessage - the message to processDockerExceptionprivate void printProgress(ProgressMessage message)
message - the ProgressMessage to parseCopyright © 2014. All rights reserved.