public class StreamAssetPathFetcher extends AssetPathFetcher<InputStream >
InputStream for an asset path.
| Constructor and Description |
|---|
StreamAssetPathFetcher(AssetManager assetManager, String
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
close(InputStream
Closes the concrete data type if necessary.
|
protected InputStream |
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 StreamAssetPathFetcher(AssetManager assetManager,
String assetPath) protected InputStreamloadResource(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<InputStream>
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(InputStreamdata) throws IOException
AssetPathFetcher
close in class
AssetPathFetcher<InputStream>
data - The data to close.
IOException -