com.bumptech.glide.load.model.file_descriptor
Class FileDescriptorUriLoader

java.lang.Object
  extended by com.bumptech.glide.load.model.UriLoader<ParcelFileDescriptor>
      extended by com.bumptech.glide.load.model.file_descriptor.FileDescriptorUriLoader
All Implemented Interfaces:
FileDescriptorModelLoader<Uri>, ModelLoader<Uri,ParcelFileDescriptor>

public class FileDescriptorUriLoader
extends UriLoader<ParcelFileDescriptor>
implements FileDescriptorModelLoader<Uri>

A ModelLoader For translating Uri models for local uris into ParcelFileDescriptor data.


Nested Class Summary
static class FileDescriptorUriLoader.Factory
          The default factory for FileDescriptorUriLoaders.
 
Constructor Summary
FileDescriptorUriLoader(Context context)
           
FileDescriptorUriLoader(Context context, ModelLoader<GlideUrl,ParcelFileDescriptor> urlLoader)
           
 
Method Summary
protected  DataFetcher<ParcelFileDescriptor> getAssetPathFetcher(Context context, String assetPath)
           
protected  DataFetcher<ParcelFileDescriptor> 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

FileDescriptorUriLoader

public FileDescriptorUriLoader(Context context)

FileDescriptorUriLoader

public FileDescriptorUriLoader(Context context,
                               ModelLoader<GlideUrl,ParcelFileDescriptor> urlLoader)
Method Detail

getLocalUriFetcher

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

getAssetPathFetcher

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