net.sf.basedb.core
Class Migration.ProgressInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
net.sf.basedb.core.Migration.ProgressInputStream
- All Implemented Interfaces:
- Closeable
- Enclosing class:
- Migration
class Migration.ProgressInputStream
- extends FilterInputStream
Method Summary |
void |
append(String msg)
|
int |
read(byte[] buffer)
|
int |
read(byte[] buffer,
int offset,
int length)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
progress
private final ProgressReporter progress
numLines
private long numLines
nextTick
private long nextTick
TICK_INTERVAL
private long TICK_INTERVAL
lastMsg
private String lastMsg
Migration.ProgressInputStream
public Migration.ProgressInputStream(InputStream parent,
ProgressReporter progress)
read
public int read(byte[] buffer)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] buffer,
int offset,
int length)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
append
public void append(String msg)