Package org.jibx.util
Class ClasspathUrlExtender.ClasspathHandler
- java.lang.Object
-
- java.net.URLStreamHandler
-
- org.jibx.util.ClasspathUrlExtender.ClasspathHandler
-
- Enclosing class:
- ClasspathUrlExtender
public static class ClasspathUrlExtender.ClasspathHandler extends URLStreamHandler
Handler for opening a connection to a resource from the classpath.
-
-
Constructor Summary
Constructors Constructor Description ClasspathHandler(ClassLoader loader)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected URLConnectionopenConnection(URL url)-
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
-
-
-
Constructor Detail
-
ClasspathHandler
public ClasspathHandler(ClassLoader loader)
Constructor.- Parameters:
loader- classloader used to find resources
-
-
Method Detail
-
openConnection
protected URLConnection openConnection(URL url) throws IOException
- Specified by:
openConnectionin classURLStreamHandler- Throws:
IOException
-
-