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.IOException
public ProgressReader(ResourceInfo resourceInfo, int buffSize) throws java.io.IOException
java.io.IOException
public ProgressReader(java.io.File file, int buffSize) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public ProgressReader(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.BufferedReader
java.io.IOException
public 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.