com.bumptech.glide.load.data
Class FileDescriptorAssetPathFetcher
java.lang.Object
com.bumptech.glide.load.data.AssetPathFetcher<android.os.ParcelFileDescriptor>
com.bumptech.glide.load.data.FileDescriptorAssetPathFetcher
- All Implemented Interfaces:
- DataFetcher<android.os.ParcelFileDescriptor>
public class FileDescriptorAssetPathFetcher
- extends AssetPathFetcher<android.os.ParcelFileDescriptor>
Fetches an ParcelFileDescriptor
for an asset path.
Method Summary |
protected void |
close(android.os.ParcelFileDescriptor data)
Closes the concrete data type if necessary. |
protected android.os.ParcelFileDescriptor |
loadResource(android.content.res.AssetManager assetManager,
String path)
Opens the given asset path with the given AssetManager and returns the conrete data
type returned by the AssetManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileDescriptorAssetPathFetcher
public FileDescriptorAssetPathFetcher(android.content.res.AssetManager assetManager,
String assetPath)
loadResource
protected android.os.ParcelFileDescriptor loadResource(android.content.res.AssetManager assetManager,
String path)
throws IOException
- Description copied from class:
AssetPathFetcher
- Opens the given asset path with the given
AssetManager
and returns the conrete data
type returned by the AssetManager.
- Specified by:
loadResource
in class AssetPathFetcher<android.os.ParcelFileDescriptor>
- 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
protected void close(android.os.ParcelFileDescriptor data)
throws IOException
- Description copied from class:
AssetPathFetcher
- Closes the concrete data type if necessary.
- Specified by:
close
in class AssetPathFetcher<android.os.ParcelFileDescriptor>
- Parameters:
data
- The data to close.
- Throws:
IOException