public class AssetURLStreamHandler extends URLStreamHandler
URLStreamHandler
to handle the asset protocol.
This is the asset URLStreamHandler variation for manual use.
It requires passing a valid AssetURLContext
for construction, hence it's not suitable for the pkg factory model.
Constructor and Description |
---|
AssetURLStreamHandler(AssetURLContext ctx) |
Modifier and Type | Method and Description |
---|---|
protected URLConnection |
openConnection(URL u) |
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
public AssetURLStreamHandler(AssetURLContext ctx)
protected URLConnection openConnection(URL u) throws IOException
openConnection
in class URLStreamHandler
IOException