LimeWire Consolidated API

com.limegroup.gnutella
Interface DownloaderInfo

All Known Subinterfaces:
BTDownloader, BTTorrentFileDownloader, CoreDownloader, Downloader, InNetworkDownloader, MagnetDownloader, ManagedDownloader, ResumeDownloader, StoreDownloader
All Known Implementing Classes:
AbstractCoreDownloader, BTDownloaderImpl, BTTorrentFileDownloaderImpl, MozillaDownloaderImpl

public interface DownloaderInfo

Classes that implement this interface can be real downloaders or just stand-ins for downloaders.


Nested Class Summary
static class DownloaderInfo.DownloadState
          Enumerates the various states of a download.
 
Method Summary
 long getAmountRead()
          Returns the amount read by this so far, in bytes.
 long getContentLength()
          Returns the size of this file in bytes, i.e., the total amount to download or -1 if content length is unknown.
 DownloaderInfo.DownloadState getState()
          Returns the state of the downloader.
 boolean isCompleted()
          Determines if the download is completed.
 

Method Detail

getAmountRead

long getAmountRead()
Returns the amount read by this so far, in bytes.


getContentLength

long getContentLength()
Returns the size of this file in bytes, i.e., the total amount to download or -1 if content length is unknown.


getState

DownloaderInfo.DownloadState getState()
Returns the state of the downloader.


isCompleted

boolean isCompleted()
Determines if the download is completed.


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.