Package com.bumptech.glide.load.data
Class AssetFileDescriptorLocalUriFetcher
java.lang.Object
com.bumptech.glide.load.data.LocalUriFetcher<AssetFileDescriptor>
com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher
- All Implemented Interfaces:
DataFetcher<AssetFileDescriptor>
Fetches an
AssetFileDescriptor for a local Uri.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.bumptech.glide.load.data.DataFetcher
DataFetcher.DataCallback<T> -
Constructor Summary
ConstructorsConstructorDescriptionAssetFileDescriptorLocalUriFetcher(ContentResolver contentResolver, Uri uri) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclose(AssetFileDescriptor data) Closes the concrete data type if necessary.Returns the class of the data this fetcher will attempt to obtain.protected AssetFileDescriptorloadResource(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
-
AssetFileDescriptorLocalUriFetcher
-
-
Method Details
-
loadResource
protected AssetFileDescriptor 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<AssetFileDescriptor>- 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<AssetFileDescriptor>- 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.
-