Package com.bumptech.glide.load.data
Class FileDescriptorLocalUriFetcher
java.lang.Object
com.bumptech.glide.load.data.LocalUriFetcher<ParcelFileDescriptor>
com.bumptech.glide.load.data.FileDescriptorLocalUriFetcher
- All Implemented Interfaces:
DataFetcher<ParcelFileDescriptor>
Fetches an
ParcelFileDescriptor for a local Uri.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.bumptech.glide.load.data.DataFetcher
DataFetcher.DataCallback<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclose(ParcelFileDescriptor data) Closes the concrete data type if necessary.Returns the class of the data this fetcher will attempt to obtain.protected ParcelFileDescriptorloadResource(Uri uri, ContentResolver contentResolver) Returns a concrete data type from the givenUriusing the givenContentResolver.Methods inherited from class com.bumptech.glide.load.data.LocalUriFetcher
cancel, cleanup, getDataSource, loadData
-
Constructor Details
-
FileDescriptorLocalUriFetcher
-
-
Method Details
-
loadResource
protected ParcelFileDescriptor loadResource(Uri uri, ContentResolver contentResolver) throws FileNotFoundException Description copied from class:LocalUriFetcherReturns a concrete data type from the givenUriusing the givenContentResolver.- Specified by:
loadResourcein classLocalUriFetcher<ParcelFileDescriptor>- Throws:
FileNotFoundException
-
close
Description copied from class:LocalUriFetcherCloses the concrete data type if necessary.Note - We can't rely on the closeable interface because it was added after our min API level. See issue #157.
- Specified by:
closein classLocalUriFetcher<ParcelFileDescriptor>- Parameters:
data- The data to close.- Throws:
IOException
-
getDataClass
Description copied from interface:DataFetcherReturns the class of the data this fetcher will attempt to obtain.
-