public class UrlAssetInfo extends AssetInfo
| Modifier and Type | Method and Description |
|---|---|
static UrlAssetInfo |
create(AssetManager assetManager,
AssetKey key,
java.net.URL url) |
boolean |
hasInitialConnection() |
java.io.InputStream |
openStream()
Implementations of this method should return an
InputStream
allowing access to the data represented by the AssetKey. |
getKey, getManager, toStringpublic static UrlAssetInfo create(AssetManager assetManager, AssetKey key, java.net.URL url) throws java.io.IOException
java.io.IOExceptionpublic boolean hasInitialConnection()
public java.io.InputStream openStream()
AssetInfoInputStream
allowing access to the data represented by the AssetKey.
Each invocation of this method should return a new stream to the asset data, starting at the beginning of the file.
openStream in class AssetInfo