ProgressBufferedInputStream

public class ProgressBufferedInputStream extends BufferedInputStream

Stream counting the total progressed data

Fields

mCurrentReadSize

protected int mCurrentReadSize

mTotalStreamSize

protected int mTotalStreamSize

Constructors

ProgressBufferedInputStream

public ProgressBufferedInputStream(InputStream in, int totalStreamSize)

ProgressBufferedInputStream

public ProgressBufferedInputStream(InputStream in, int size, int totalStreamSize)

Methods

available

public synchronized int available()

read

public synchronized int read()

read

public synchronized int read(byte[] b, int off, int len)

read

public int read(byte[] buffer)

reset

public synchronized void reset()