com.bumptech.glide.integration.okhttp3
Class OkHttpStreamFetcher
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OkHttpStreamFetcher
public OkHttpStreamFetcher(okhttp3.Call.Factory client,
com.bumptech.glide.load.model.GlideUrl url)
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>