Package 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
,AutoCloseable
- Enclosing class:
- Migration
class Migration.ProgressInputStream extends FilterInputStream
-
-
Field Summary
Fields Modifier and Type Field Description private String
lastMsg
private long
nextTick
private long
numLines
private ProgressReporter
progress
private long
TICK_INTERVAL
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description ProgressInputStream(InputStream parent, ProgressReporter progress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(String msg)
int
read(byte[] buffer)
int
read(byte[] buffer, int offset, int length)
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Field Detail
-
progress
private final ProgressReporter progress
-
numLines
private long numLines
-
nextTick
private long nextTick
-
TICK_INTERVAL
private long TICK_INTERVAL
-
lastMsg
private String lastMsg
-
-
Constructor Detail
-
ProgressInputStream
public ProgressInputStream(InputStream parent, ProgressReporter progress)
-
-
Method Detail
-
read
public int read(byte[] buffer) throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
public int read(byte[] buffer, int offset, int length) throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
append
public void append(String msg)
-
-