public class FileDescriptorLocalUriFetcher extends LocalUriFetcher<ParcelFileDescriptor>
ParcelFileDescriptor for a local Uri.| Constructor and Description |
|---|
FileDescriptorLocalUriFetcher(Context context,
Uri uri) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
close(ParcelFileDescriptor data)
Closes the concrete data type if necessary.
|
protected ParcelFileDescriptor |
loadResource(Uri uri,
ContentResolver contentResolver)
Returns a concrete data type from the given
Uri using the given
ContentResolver. |
cancel, cleanup, getId, loadDataprotected ParcelFileDescriptor loadResource(Uri uri, ContentResolver contentResolver) throws FileNotFoundException
LocalUriFetcherUri using the given
ContentResolver.loadResource in class LocalUriFetcher<ParcelFileDescriptor>FileNotFoundExceptionprotected void close(ParcelFileDescriptor data) throws IOException
LocalUriFetcherNote - We can't rely on the closeable interface because it was added after our min API level. See issue #157.
close in class LocalUriFetcher<ParcelFileDescriptor>data - The data to close.IOException