public class DownloadReader extends ProgressReader
FileStreamDownloadAgent for downloading ASCII files.
You should use the readLine() method for reading the stream. Reading is monitored
in the client by the underlying DownloadStream.| Constructor and Description |
|---|
DownloadReader(DownloadStream inStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
AgentId |
getAgentId() |
DownloadStream |
getDownloadStream() |
JobId |
getJobId() |
long |
getRealFileSize() |
java.io.File |
getServerFile() |
FileStreamJob |
getStreamJob() |
java.lang.String |
toString() |
getFileInfo, getInputStream, getProgressorTask, getReadBytes, getReadPercentage, getTotalBytes, isClosed, setProgressorTaskpublic DownloadReader(DownloadStream inStream)
public DownloadStream getDownloadStream()
public long getRealFileSize()
public java.io.File getServerFile()
public FileStreamJob getStreamJob()
public JobId getJobId()
public AgentId getAgentId()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class ProgressReaderjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014 EsprIT-Systems. All Rights Reserved.