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 | Description |
|---|---|
AssetURLStreamHandler(AssetURLContext ctx) |
| Modifier and Type | Method | Description |
|---|---|---|
protected URLConnection |
openConnection(URL u) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalFormpublic AssetURLStreamHandler(AssetURLContext ctx)
protected URLConnection openConnection(URL u) throws IOException
openConnection in class URLStreamHandlerIOException