com.bumptech.glide.load.model.stream
Class StreamUriLoader

java.lang.Object
  extended by com.bumptech.glide.load.model.UriLoader<InputStream>
      extended by com.bumptech.glide.load.model.stream.StreamUriLoader
All Implemented Interfaces:
ModelLoader<Uri,InputStream>, StreamModelLoader<Uri>

public class StreamUriLoader
extends UriLoader<InputStream>
implements StreamModelLoader<Uri>

A ModelLoader for translating uri models into InputStream data. Capable of handling 'http', 'https', 'android.resource', 'content', and 'file' schemes. Unsupported schemes will throw an exception in UriLoader.getResourceFetcher(Uri, int, int).


Nested Class Summary
static class StreamUriLoader.Factory
          THe default factory for StreamUriLoaders.
 
Constructor Summary
StreamUriLoader(Context context)
           
StreamUriLoader(Context context, ModelLoader<GlideUrl,InputStream> urlLoader)
           
 
Method Summary
protected  DataFetcher<InputStream> getAssetPathFetcher(Context context, String assetPath)
           
protected  DataFetcher<InputStream> getLocalUriFetcher(Context context, Uri uri)
           
 
Methods inherited from class com.bumptech.glide.load.model.UriLoader
getResourceFetcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.bumptech.glide.load.model.ModelLoader
getResourceFetcher
 

Constructor Detail

StreamUriLoader

public StreamUriLoader(Context context)

StreamUriLoader

public StreamUriLoader(Context context,
                       ModelLoader<GlideUrl,InputStream> urlLoader)
Method Detail

getLocalUriFetcher

protected DataFetcher<InputStream> getLocalUriFetcher(Context context,
                                                      Uri uri)
Specified by:
getLocalUriFetcher in class UriLoader<InputStream>

getAssetPathFetcher

protected DataFetcher<InputStream> getAssetPathFetcher(Context context,
                                                       String assetPath)
Specified by:
getAssetPathFetcher in class UriLoader<InputStream>