org.lastbamboo.common.download
Class DownloaderState.AbstractRunning

java.lang.Object
  extended by org.lastbamboo.common.download.DownloaderState.AbstractRunning
All Implemented Interfaces:
DownloaderState
Direct Known Subclasses:
MoverDState.DownloadingImpl, MoverDState.MovingImpl, MsDState.GettingSourcesImpl, MsDState.IdleImpl, MsDState.LibTorrentDownloadingState, MsDState.LimeWireDownloadingState, MsDState.LittleShootDownloadingState, MsDState.PausedImpl, Sha1DState.DownloadingImpl, Sha1DState.VerifyingSha1Impl
Enclosing interface:
DownloaderState

public abstract static class DownloaderState.AbstractRunning
extends Object
implements DownloaderState

An abstract state for implementing running states.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.lastbamboo.common.download.DownloaderState
DownloaderState.AbstractFailed, DownloaderState.AbstractRunning, DownloaderState.AbstractSucceeded
 
Constructor Summary
DownloaderState.AbstractRunning()
           
 
Method Summary
 String calculateTimeRemaining(long read, long size, double kbs)
           
 DownloaderStateType getType()
          Returns the type of this state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloaderState.AbstractRunning

public DownloaderState.AbstractRunning()
Method Detail

getType

public DownloaderStateType getType()
Description copied from interface: DownloaderState
Returns the type of this state.

Specified by:
getType in interface DownloaderState
Returns:
The type of this state.

calculateTimeRemaining

public String calculateTimeRemaining(long read,
                                     long size,
                                     double kbs)


Copyright © 2013 LittleShoot. All Rights Reserved.