class Migration.ProgressInputStream extends FilterInputStream
Modifier and Type | Field and Description |
---|---|
private String |
lastMsg |
private long |
nextTick |
private long |
numLines |
private ProgressReporter |
progress |
private long |
TICK_INTERVAL |
in
Constructor and Description |
---|
ProgressInputStream(InputStream parent,
ProgressReporter progress) |
Modifier and Type | Method and Description |
---|---|
void |
append(String msg) |
int |
read(byte[] buffer) |
int |
read(byte[] buffer,
int offset,
int length) |
available, close, mark, markSupported, read, reset, skip
private final ProgressReporter progress
private long numLines
private long nextTick
private long TICK_INTERVAL
private String lastMsg
public ProgressInputStream(InputStream parent, ProgressReporter progress)
public int read(byte[] buffer) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] buffer, int offset, int length) throws IOException
read
in class FilterInputStream
IOException
public void append(String msg)