public class StreamUriLoader extends UriLoader<InputStream> implements StreamModelLoader<Uri>
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).| Modifier and Type | Class and Description |
|---|---|
static class |
StreamUriLoader.Factory
THe default factory for
StreamUriLoaders. |
| Constructor and Description |
|---|
StreamUriLoader(Context context) |
StreamUriLoader(Context context,
ModelLoader<GlideUrl,InputStream> urlLoader) |
| Modifier and Type | Method and Description |
|---|---|
protected DataFetcher<InputStream> |
getAssetPathFetcher(Context context,
String assetPath) |
protected DataFetcher<InputStream> |
getLocalUriFetcher(Context context,
Uri uri) |
getResourceFetcherclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResourceFetcherpublic StreamUriLoader(Context context)
public StreamUriLoader(Context context, ModelLoader<GlideUrl,InputStream> urlLoader)
protected DataFetcher<InputStream> getLocalUriFetcher(Context context, Uri uri)
getLocalUriFetcher in class UriLoader<InputStream>protected DataFetcher<InputStream> getAssetPathFetcher(Context context, String assetPath)
getAssetPathFetcher in class UriLoader<InputStream>