public class ProgressFileInputStream
extends java.io.FileInputStream
FileInputStream and generates a progress notification
for each percentage read (max 100 in total).| Constructor and Description |
|---|
ProgressFileInputStream(java.io.File file) |
ProgressFileInputStream(LocalFileInfo fileInfo) |
| Modifier and Type | Method and Description |
|---|---|
FileInfo |
getFileInfo() |
int |
getProgressCount()
Returns the number of progress calls that have been made.
|
long |
getReadBytes()
Returns the number of bytes already read from this stream
|
long |
getTotalBytes() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
setProgressor(AsyncExecutable progressorTask) |
long |
skip(long bytes) |
public ProgressFileInputStream(java.io.File file)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic ProgressFileInputStream(LocalFileInfo fileInfo) throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic void setProgressor(AsyncExecutable progressorTask)
public long getReadBytes()
public long getTotalBytes()
public FileInfo getFileInfo()
public int getProgressCount()
public long skip(long bytes)
throws java.io.IOException
skip in class java.io.FileInputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.FileInputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.FileInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FileInputStreamjava.io.IOExceptionCopyright © 2014 EsprIT-Systems. All Rights Reserved.