com.bumptech.glide.load.model.stream
Class StreamUriLoader
java.lang.Object
com.bumptech.glide.load.model.UriLoader<InputStream>
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)
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamUriLoader
public StreamUriLoader(Context context)
StreamUriLoader
public StreamUriLoader(Context context,
ModelLoader<GlideUrl,InputStream> urlLoader)
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>