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