|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RangeDownloader
Interface for classes that can initiate downloads.
| Method Summary | |
|---|---|
void |
download(org.apache.commons.lang.math.LongRange range)
Downloads the specified range from the assigned file. |
org.littleshoot.util.Optional<Integer> |
getKbs()
Gets the speed of this downloader in kilobytes per second. |
long |
getNumBytesDownloaded()
Returns the number of bytes downloaded by this downloader. |
long |
getRangeIndex()
Accessor for the byte index of the current range. |
long |
getRangeStartTime()
Accessor for the time the downloader started downloading the current range. |
URI |
getSourceUri()
Returns the source URI for this downloader. |
void |
issueHeadRequest()
Sends a head request to the server this downloader is downloading from. |
| Method Detail |
|---|
org.littleshoot.util.Optional<Integer> getKbs()
long getNumBytesDownloaded()
void download(org.apache.commons.lang.math.LongRange range)
range - The byte range to download.void issueHeadRequest()
URI getSourceUri()
long getRangeStartTime()
long getRangeIndex()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||