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.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv AssetURLContext |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected URLConnection | openConnection(final URL
the URL that this connects to. u)Implements abstract java. URL argument.
|
| ctx | back to summary |
|---|---|
| pack-priv AssetURLContext ctx | |
| AssetURLStreamHandler | back to summary |
|---|---|
| public AssetURLStreamHandler(final AssetURLContext ctx) | |
| openConnection | back to summary |
|---|---|
| protected URLConnection openConnection(final URL u) throws IOException Implements abstract java. Doc from java. Opens a connection to the object referenced by the
If for the handler's protocol (such as HTTP or JAR), there exists a public, specialized URLConnection subclass belonging to one of the following packages or one of their subpackages: java.lang, java.io, java.util, java.net, the connection returned will be of that subclass. For example, for HTTP an HttpURLConnection will be returned, and for JAR a JarURLConnection will be returned.
| |