public class ProgressReader
extends java.io.LineNumberReader
LineNumberReader that just wraps a ProgressInputStream| Constructor and Description |
|---|
ProgressReader(java.io.File file) |
ProgressReader(java.io.File file,
int buffSize) |
ProgressReader(ProgressInputStream inStream) |
ProgressReader(ProgressInputStream inStream,
int buffSize) |
ProgressReader(ResourceInfo resourceInfo) |
ProgressReader(ResourceInfo resourceInfo,
int buffSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
FileInfo |
getFileInfo() |
ProgressInputStream |
getInputStream() |
AsyncExecutable |
getProgressorTask()
Returns the
AsyncExecutable which is executing this progress reader. |
long |
getReadBytes() |
int |
getReadPercentage() |
long |
getTotalBytes() |
boolean |
isClosed()
Allows to check whether
close() has yet been called on this stream. |
void |
setProgressorTask(AsyncExecutable progressor)
Sets the
AsyncExecutable which receives PROGRESS notifications. |
public ProgressReader(ProgressInputStream inStream, int buffSize)
public ProgressReader(ProgressInputStream inStream)
public ProgressReader(ResourceInfo resourceInfo) throws java.io.IOException
java.io.IOExceptionpublic ProgressReader(ResourceInfo resourceInfo, int buffSize) throws java.io.IOException
java.io.IOExceptionpublic ProgressReader(java.io.File file,
int buffSize)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic ProgressReader(java.io.File file)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.BufferedReaderjava.io.IOExceptionpublic boolean isClosed()
close() has yet been called on this stream.public void setProgressorTask(AsyncExecutable progressor)
AsyncExecutable which receives PROGRESS notifications.
If no progressorTask is set, then no PROGRESS notifications are issued.public AsyncExecutable getProgressorTask()
AsyncExecutable which is executing this progress reader.public ProgressInputStream getInputStream()
public long getTotalBytes()
public long getReadBytes()
public int getReadPercentage()
public FileInfo getFileInfo()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.