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, setProgressorTask
public 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.Closeable
close
in interface java.lang.AutoCloseable
close
in class ProgressReader
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014 EsprIT-Systems. All Rights Reserved.