org.jibx.util
Class ClasspathUrlExtender.ClasspathHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by 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
ClasspathUrlExtender.ClasspathHandler(ClassLoader loader)
          Constructor.
 
Method Summary
protected  URLConnection openConnection(URL url)
           
 
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

ClasspathUrlExtender.ClasspathHandler

public ClasspathUrlExtender.ClasspathHandler(ClassLoader loader)
Constructor.

Parameters:
loader - classloader used to find resources
Method Detail

openConnection

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


Copyright © 2005-2011 jibx.org. All Rights Reserved.