Package com.bumptech.glide.load.data
Class FileDescriptorAssetPathFetcher
java.lang.Object
com.bumptech.glide.load.data.AssetPathFetcher<AssetFileDescriptor>
com.bumptech.glide.load.data.FileDescriptorAssetPathFetcher
- All Implemented Interfaces:
DataFetcher<AssetFileDescriptor>
Fetches an
AssetFileDescriptor for an asset path.-
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(AssetFileDescriptor data) Closes the concrete data type if necessary.Returns the class of the data this fetcher will attempt to obtain.protected AssetFileDescriptorloadResource(AssetManager assetManager, String path) Opens the given asset path with the givenAssetManagerand returns the concrete data type returned by the AssetManager.Methods inherited from class com.bumptech.glide.load.data.AssetPathFetcher
cancel, cleanup, getDataSource, loadData
-
Constructor Details
-
FileDescriptorAssetPathFetcher
-
-
Method Details
-
loadResource
protected AssetFileDescriptor loadResource(AssetManager assetManager, String path) throws IOException Description copied from class:AssetPathFetcherOpens the given asset path with the givenAssetManagerand returns the concrete data type returned by the AssetManager.- Specified by:
loadResourcein classAssetPathFetcher<AssetFileDescriptor>- Parameters:
assetManager- An AssetManager to use to open the given path.path- A string path pointing to a resource in assets to open.- Throws:
IOException
-
close
Description copied from class:AssetPathFetcherCloses the concrete data type if necessary.- Specified by:
closein classAssetPathFetcher<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.
-