com.bumptech.glide.integration.okhttp3
Class OkHttpStreamFetcher

java.lang.Object
  extended by com.bumptech.glide.integration.okhttp3.OkHttpStreamFetcher
All Implemented Interfaces:
com.bumptech.glide.load.data.DataFetcher<InputStream>

public class OkHttpStreamFetcher
extends Object
implements com.bumptech.glide.load.data.DataFetcher<InputStream>

Fetches an InputStream using the okhttp3library.


Constructor Summary
OkHttpStreamFetcher(okhttp3.Call.Factory client, com.bumptech.glide.load.model.GlideUrl url)
           
 
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
 

Constructor Detail

OkHttpStreamFetcher

public OkHttpStreamFetcher(okhttp3.Call.Factory client,
                           com.bumptech.glide.load.model.GlideUrl url)
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>