GlueGen
v2.6.0-rc-20250712
GlueGen, Native Binding Generator for Java (public API).
Handler.java
Go to the documentation of this file.
1
package
com.jogamp.common.net.asset;
2
3
import
java.io.IOException;
4
import
java.net.URL;
5
import
java.net.URLConnection;
6
import
java.net.URLStreamHandler;
7
8
import
com.jogamp.common.net.AssetURLConnection;
9
import
com.jogamp.common.net.AssetURLContext;
10
11
/**
12
* {@link URLStreamHandler} to handle the asset protocol.
13
*
14
* <p>
15
* This is the <i>asset</i> URLStreamHandler variation
16
* using this class ClassLoader for the pkg factory model.
17
* </p>
18
*/
19
public
class
Handler
extends
URLStreamHandler {
20
static
final
AssetURLContext
localCL =
new
AssetURLContext
() {
21
@Override
22
public
ClassLoader getClassLoader() {
23
return
Handler
.class.getClassLoader();
24
}
25
};
26
27
public
Handler
() {
28
super();
29
}
30
31
@Override
32
protected
URLConnection
openConnection
(
final
URL u)
throws
IOException {
33
final
AssetURLConnection
c =
new
AssetURLConnection
(u, localCL);
34
c.
connect
();
35
return
c;
36
}
37
38
}
com.jogamp.common.net.AssetURLConnection
See base class PiggybackURLConnection for motivation.
Definition:
AssetURLConnection.java:72
com.jogamp.common.net.AssetURLContext
See PiggybackURLConnection for description and examples.
Definition:
AssetURLContext.java:18
com.jogamp.common.net.PiggybackURLConnection.connect
synchronized void connect()
Definition:
PiggybackURLConnection.java:41
com.jogamp.common.net.asset.Handler
URLStreamHandler to handle the asset protocol.
Definition:
Handler.java:19
com.jogamp.common.net.asset.Handler.Handler
Handler()
Definition:
Handler.java:27
com.jogamp.common.net.asset.Handler.openConnection
URLConnection openConnection(final URL u)
Definition:
Handler.java:32
src
java
com
jogamp
common
net
asset
Handler.java
Generated by
1.9.4