org.gudy.azureus2.plugins.download
Interface DownloadStub

All Known Subinterfaces:
Download, DownloadStub.DownloadStubEx
All Known Implementing Classes:
DownloadImpl, DownloadStubImpl, LWSDownload, RPDownload

public interface DownloadStub


Nested Class Summary
static interface DownloadStub.DownloadStubEx
           
static interface DownloadStub.DownloadStubFile
           
 
Method Summary
 Download destubbify()
           
 long getLongAttribute(TorrentAttribute attribute)
          There are logically separate from the un-stubbed download, if you want to synchronize values from non-stub and stub then it is up to you to do it.
 java.lang.String getName()
           
 java.lang.String getSavePath()
           
 DownloadStub.DownloadStubFile[] getStubFiles()
           
 Torrent getTorrent()
           
 byte[] getTorrentHash()
           
 long getTorrentSize()
           
 boolean isStub()
           
 void remove()
           
 void setLongAttribute(TorrentAttribute attribute, long value)
           
 

Method Detail

isStub

boolean isStub()

destubbify

Download destubbify()
                    throws DownloadException
Throws:
DownloadException

getName

java.lang.String getName()

getTorrentHash

byte[] getTorrentHash()

getTorrentSize

long getTorrentSize()

getTorrent

Torrent getTorrent()

getSavePath

java.lang.String getSavePath()

getStubFiles

DownloadStub.DownloadStubFile[] getStubFiles()

getLongAttribute

long getLongAttribute(TorrentAttribute attribute)
There are logically separate from the un-stubbed download, if you want to synchronize values from non-stub and stub then it is up to you to do it. So I suggest that you infact don't do this but just use these methods as a means to cache essential attributes from unstubbed ones in the 'will-be-added' listener event

Parameters:
attribute -
Returns:

setLongAttribute

void setLongAttribute(TorrentAttribute attribute,
                      long value)

remove

void remove()
            throws DownloadException,
                   DownloadRemovalVetoException
Throws:
DownloadException
DownloadRemovalVetoException