public class FileDescriptorAssetPathFetcher extends AssetPathFetcher<ParcelFileDescriptor >
android.os.ParcelFileDescriptor for an asset path.
| Constructor and Description |
|---|
FileDescriptorAssetPathFetcher(AssetManager assetManager, String
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
close(ParcelFileDescriptor data)
Closes the concrete data type if necessary.
|
protected ParcelFileDescriptor |
loadResource(AssetManager assetManager, String
Opens the given asset path with the given
android.content.res.AssetManager and returns the conrete data type returned by the AssetManager.
|
cancel, cleanup, getId, loadDatapublic FileDescriptorAssetPathFetcher(AssetManager assetManager,
String assetPath) protected ParcelFileDescriptor loadResource(AssetManager assetManager,
String path)
throws IOException
AssetPathFetcher
android.content.res.AssetManager and returns the conrete data type returned by the AssetManager.
loadResource in class
AssetPathFetcher<ParcelFileDescriptor>
assetManager - An AssetManager to use to open the given path.
path - A string path pointing to a resource in assets to open.
IOException
protected void close(ParcelFileDescriptor data)
throws IOException
AssetPathFetcher
close in class
AssetPathFetcher<ParcelFileDescriptor>
data - The data to close.
IOException -