Interface DownloadStub
- All Known Subinterfaces:
Download, DownloadStub.DownloadStubEx
- All Known Implementing Classes:
DownloadImpl, DownloadStubImpl, LWSDownload, RPDownload
public interface DownloadStub
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionlonggetLongAttribute(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.default StringgetName()byte[]longbooleanisStub()voidremove()voidsetLongAttribute(TorrentAttribute attribute, long value)
-
Method Details
-
isStub
boolean isStub() -
destubbify
- Throws:
DownloadException
-
getName
String getName() -
getTorrentHash
byte[] getTorrentHash() -
getTorrentSize
long getTorrentSize() -
getTorrent
Torrent getTorrent() -
getSavePath
String getSavePath() -
getMainTracker
-
getStubFiles
DownloadStub.DownloadStubFile[] getStubFiles() -
getLongAttribute
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
-
remove
-