Package com.bumptech.glide.load.data
Class StreamLocalUriFetcher
java.lang.Object
com.bumptech.glide.load.data.LocalUriFetcher<InputStream>
com.bumptech.glide.load.data.StreamLocalUriFetcher
- All Implemented Interfaces:
DataFetcher<InputStream>
Fetches an
InputStream for a local Uri.-
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(InputStream data) Closes the concrete data type if necessary.Returns the class of the data this fetcher will attempt to obtain.protected InputStreamloadResource(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
-
StreamLocalUriFetcher
-
-
Method Details
-
loadResource
protected InputStream 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<InputStream>- 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<InputStream>- 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.
-