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, toString
public static UrlAssetInfo create(AssetManager assetManager, AssetKey key, java.net.URL url) throws java.io.IOException
java.io.IOException
public boolean hasInitialConnection()
public java.io.InputStream openStream()
AssetInfo
InputStream
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