public class OkHttpStreamFetcher
extends java.lang.Object
implements net.qiujuer.library.planck.data.StreamFetcher, okhttp3.Callback
| Constructor and Description |
|---|
OkHttpStreamFetcher(java.lang.String url,
long position,
long size,
okhttp3.Call.Factory client) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
loadData(net.qiujuer.library.planck.data.StreamFetcher.Priority priority,
net.qiujuer.library.planck.data.StreamFetcher.DataCallback callback) |
void |
onFailure(okhttp3.Call call,
java.io.IOException e) |
void |
onResponse(okhttp3.Call call,
okhttp3.Response response) |
public OkHttpStreamFetcher(java.lang.String url,
long position,
long size,
okhttp3.Call.Factory client)
public void loadData(@NonNull
net.qiujuer.library.planck.data.StreamFetcher.Priority priority,
@NonNull
net.qiujuer.library.planck.data.StreamFetcher.DataCallback callback)
loadData in interface net.qiujuer.library.planck.data.StreamFetcherpublic void cleanup()
cleanup in interface net.qiujuer.library.planck.data.StreamFetcherpublic void onFailure(@NonNull
okhttp3.Call call,
@NonNull
java.io.IOException e)
onFailure in interface okhttp3.Callbackpublic void onResponse(@NonNull
okhttp3.Call call,
@NonNull
okhttp3.Response response)
throws java.io.IOException
onResponse in interface okhttp3.Callbackjava.io.IOException