|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lastbamboo.common.download.RateCalculatorImpl
public class RateCalculatorImpl
An implementation of the rate calculator interface.
| Constructor Summary | |
|---|---|
RateCalculatorImpl()
Constructs a new rate calculator. |
|
| Method Summary | |
|---|---|
void |
addData(RangeDownloader downloader)
Adds data for the given downloader. |
long |
getBytesRead()
Accessor for the total number of bytes read. |
double |
getRate()
Returns the rate since a given time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RateCalculatorImpl()
| Method Detail |
|---|
public double getRate()
RateCalculator
getRate in interface RateCalculatorpublic void addData(RangeDownloader downloader)
RateCalculator
addData in interface RateCalculatordownloader - The downloader to add data for.public long getBytesRead()
RateCalculator
getBytesRead in interface RateCalculator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||