Class VolleyStreamFetcher

  • All Implemented Interfaces:
    com.bumptech.glide.load.data.DataFetcher<java.io.InputStream>

    public class VolleyStreamFetcher
    extends java.lang.Object
    implements com.bumptech.glide.load.data.DataFetcher<java.io.InputStream>
    A DataFetcher backed by volley for fetching images via http.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  VolleyStreamFetcher.GlideRequest
      Default Request implementation for Glide that receives errors and results on volley's background thread.
      • Nested classes/interfaces inherited from interface com.bumptech.glide.load.data.DataFetcher

        com.bumptech.glide.load.data.DataFetcher.DataCallback<T extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      VolleyStreamFetcher​(com.android.volley.RequestQueue requestQueue, com.bumptech.glide.load.model.GlideUrl url)  
      VolleyStreamFetcher​(com.android.volley.RequestQueue requestQueue, com.bumptech.glide.load.model.GlideUrl url, VolleyRequestFactory requestFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()  
      void cleanup()  
      java.lang.Class<java.io.InputStream> getDataClass()  
      com.bumptech.glide.load.DataSource getDataSource()  
      void loadData​(com.bumptech.glide.Priority priority, com.bumptech.glide.load.data.DataFetcher.DataCallback<? super java.io.InputStream> callback)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • loadData

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

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

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

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

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