3.2.1: 2012-12-13

net.sf.basedb.core
Class Migration.ProgressInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by net.sf.basedb.core.Migration.ProgressInputStream
All Implemented Interfaces:
Closeable
Enclosing class:
Migration

 class Migration.ProgressInputStream
extends FilterInputStream


Field Summary
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
Migration.ProgressInputStream(InputStream parent, ProgressReporter progress)
           
 
Method Summary
 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.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

Migration.ProgressInputStream

public Migration.ProgressInputStream(InputStream parent,
                                     ProgressReporter progress)
Method Detail

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)

3.2.1: 2012-12-13