com.bumptech.glide.integration.volley
Class VolleyStreamFetcher

java.lang.Object
  extended by 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 Summary
static VolleyRequestFactory DEFAULT_REQUEST_FACTORY
           
 
Constructor Summary
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, VolleyRequestFuture<InputStream> requestFuture)
           
VolleyStreamFetcher(com.android.volley.RequestQueue requestQueue, com.bumptech.glide.load.model.GlideUrl url, VolleyRequestFuture<InputStream> requestFuture, VolleyRequestFactory requestFactory)
           
 
Method Summary
 void cancel()
           
 void cleanup()
           
 String getId()
           
 InputStream loadData(com.bumptech.glide.Priority priority)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_REQUEST_FACTORY

public static final VolleyRequestFactory DEFAULT_REQUEST_FACTORY
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,
                           VolleyRequestFuture<InputStream> requestFuture)

VolleyStreamFetcher

public VolleyStreamFetcher(com.android.volley.RequestQueue requestQueue,
                           com.bumptech.glide.load.model.GlideUrl url,
                           VolleyRequestFuture<InputStream> requestFuture,
                           VolleyRequestFactory requestFactory)
Method Detail

loadData

public InputStream loadData(com.bumptech.glide.Priority priority)
                     throws Exception
Specified by:
loadData in interface com.bumptech.glide.load.data.DataFetcher<InputStream>
Throws:
Exception

cleanup

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

getId

public String getId()
Specified by:
getId 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>