Class ExternalSeedHTTPDownloaderLinear.Downloader
java.lang.Object
com.biglybt.plugin.extseed.util.ExternalSeedHTTPDownloaderLinear.Downloader
- All Implemented Interfaces:
SEPasswordListener
- Enclosing class:
ExternalSeedHTTPDownloaderLinear
protected class ExternalSeedHTTPDownloaderLinear.Downloader
extends Object
implements SEPasswordListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate RandomAccessFileprivate File -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDownloader(ExternalSeedHTTPDownloaderListener _listener, boolean _con_fail_is_perm_fail) -
Method Summary
Modifier and TypeMethodDescriptionprotected ExternalSeedHTTPDownloaderLinear.RequestaddRequest(long offset, int length, ExternalSeedHTTPDownloaderListener listener) protected intvoidprotected voiddestroy(ExternalSeedException error) protected voiddownload()getAuthentication(String realm, URL tracker) voidsetAuthenticationOutcome(String realm, URL tracker, boolean success)
-
Field Details
-
listener
-
con_fail_is_perm_fail
private boolean con_fail_is_perm_fail -
destroyed
private volatile boolean destroyed -
requests
-
raf
-
scratch_file
-
-
Constructor Details
-
Downloader
-
-
Method Details
-
download
protected void download() -
addRequest
protected ExternalSeedHTTPDownloaderLinear.Request addRequest(long offset, int length, ExternalSeedHTTPDownloaderListener listener) throws ExternalSeedException - Throws:
ExternalSeedException
-
checkRequests
protected int checkRequests() -
destroy
-
getAuthentication
- Specified by:
getAuthenticationin interfaceSEPasswordListener
-
setAuthenticationOutcome
- Specified by:
setAuthenticationOutcomein interfaceSEPasswordListener
-
clearPasswords
public void clearPasswords()- Specified by:
clearPasswordsin interfaceSEPasswordListener
-