-
- All Implemented Interfaces:
-
com.bumptech.glide.load.data.DataFetcher,okhttp3.Callback
public class OkHttpStreamFetcher implements DataFetcher<InputStream>, Callback
Fetches an InputStream using the okhttp library.
-
-
Constructor Summary
Constructors Constructor Description OkHttpStreamFetcher(Call.Factory client, GlideUrl url)
-
Method Summary
Modifier and Type Method Description voidloadData(@NonNull() Priority priority, @NonNull() DataFetcher.DataCallback<out Object> callback)voidonFailure(@NonNull() Call call, @NonNull() IOException e)voidonResponse(@NonNull() Call call, @NonNull() Response response)voidcleanup()voidcancel()Class<InputStream>getDataClass()DataSourcegetDataSource()-
Methods inherited from class com.bumptech.glide.load.data.DataFetcher
cancel, cleanup, getDataClass, getDataSource, loadData -
Methods inherited from class okhttp3.Callback
onFailure, onResponse -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
loadData
void loadData(@NonNull() Priority priority, @NonNull() DataFetcher.DataCallback<out Object> callback)
-
onFailure
void onFailure(@NonNull() Call call, @NonNull() IOException e)
-
onResponse
void onResponse(@NonNull() Call call, @NonNull() Response response)
-
cleanup
void cleanup()
-
cancel
void cancel()
-
getDataClass
@NonNull() Class<InputStream> getDataClass()
-
getDataSource
@NonNull() DataSource getDataSource()
-
-
-
-