Class VolleyStreamFetcher

java.lang.Object
com.bumptech.glide.integration.volley.VolleyStreamFetcher
All Implemented Interfaces:
com.bumptech.glide.load.data.DataFetcher<InputStream>

public class VolleyStreamFetcher extends Object implements com.bumptech.glide.load.data.DataFetcher<InputStream>
A DataFetcher backed by volley for fetching images via http.
  • Field Details

  • Constructor Details

    • VolleyStreamFetcher

      public VolleyStreamFetcher(com.android.volley.RequestQueue requestQueue, com.bumptech.glide.load.model.GlideUrl url)
    • VolleyStreamFetcher

      public VolleyStreamFetcher(com.android.volley.RequestQueue requestQueue, com.bumptech.glide.load.model.GlideUrl url, VolleyRequestFactory requestFactory)
  • Method Details

    • loadData

      public void loadData(@NonNull com.bumptech.glide.Priority priority, @NonNull com.bumptech.glide.load.data.DataFetcher.DataCallback<? super InputStream> callback)
      Specified by:
      loadData in interface com.bumptech.glide.load.data.DataFetcher<InputStream>
    • cleanup

      public void cleanup()
      Specified by:
      cleanup in interface com.bumptech.glide.load.data.DataFetcher<InputStream>
    • cancel

      public void cancel()
      Specified by:
      cancel in interface com.bumptech.glide.load.data.DataFetcher<InputStream>
    • getDataClass

      @NonNull public Class<InputStream> getDataClass()
      Specified by:
      getDataClass in interface com.bumptech.glide.load.data.DataFetcher<InputStream>
    • getDataSource

      @NonNull public com.bumptech.glide.load.DataSource getDataSource()
      Specified by:
      getDataSource in interface com.bumptech.glide.load.data.DataFetcher<InputStream>