Package 

Class OkHttpStreamFetcher

  • 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
      void loadData(@NonNull() Priority priority, @NonNull() DataFetcher.DataCallback<out Object> callback)
      void onFailure(@NonNull() Call call, @NonNull() IOException e)
      void onResponse(@NonNull() Call call, @NonNull() Response response)
      void cleanup()
      void cancel()
      Class<InputStream> getDataClass()
      DataSource getDataSource()
      • 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