public class

ProgressInputStream

extends FileInputStream
java.lang.Object
   ↳ java.io.InputStream
     ↳ java.io.FileInputStream
       ↳ fm.audiobox.core.utils.ProgressInputStream

Class Overview

Created based on http://stackoverflow.com/questions/1339437/inputstream-or-reader-wrapper-for-progress-reporting

Summary

Constants
String TOTAL_NUM_BYTE_READ
Public Constructors
ProgressInputStream(File in, long maxNumBytes)
Public Methods
void addPropertyChangeListener(PropertyChangeListener l)
long getMaxNumBytes()
long getTotalNumBytesRead()
void mark(int readlimit)
boolean markSupported()
int read(byte[] b)
int read()
int read(byte[] b, int off, int len)
void removePropertyChangeListener(PropertyChangeListener l)
void reset()
long skip(long n)
[Expand]
Inherited Methods
From class java.io.FileInputStream
From class java.io.InputStream
From class java.lang.Object
From interface java.io.Closeable
From interface java.lang.AutoCloseable

Constants

public static final String TOTAL_NUM_BYTE_READ

Constant Value: "totalNumBytesRead"

Public Constructors

public ProgressInputStream (File in, long maxNumBytes)

Throws
FileNotFoundException

Public Methods

public void addPropertyChangeListener (PropertyChangeListener l)

public long getMaxNumBytes ()

public long getTotalNumBytesRead ()

public void mark (int readlimit)

public boolean markSupported ()

public int read (byte[] b)

Throws
IOException

public int read ()

Throws
IOException

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

Throws
IOException

public void removePropertyChangeListener (PropertyChangeListener l)

public void reset ()

Throws
IOException

public long skip (long n)

Throws
IOException