Package com.jogamp.common.net
Class AssetURLStreamHandler
- java.lang.Object
-
- java.net.URLStreamHandler
-
- com.jogamp.common.net.AssetURLStreamHandler
-
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 Summary
Constructors Constructor Description AssetURLStreamHandler(AssetURLContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected URLConnection
openConnection(URL u)
-
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
-
-
-
Constructor Detail
-
AssetURLStreamHandler
public AssetURLStreamHandler(AssetURLContext ctx)
-
-
Method Detail
-
openConnection
protected URLConnection openConnection(URL u) throws IOException
- Specified by:
openConnection
in classURLStreamHandler
- Throws:
IOException
-
-