com.jogamp.common.net
Class AssetURLStreamHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by 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
AssetURLStreamHandler(AssetURLContext ctx)
           
 
Method Summary
protected  URLConnection openConnection(URL u)
           
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetURLStreamHandler

public AssetURLStreamHandler(AssetURLContext ctx)
Method Detail

openConnection

protected URLConnection openConnection(URL u)
                                throws IOException
Specified by:
openConnection in class URLStreamHandler
Throws:
IOException