XDC - v. 0.6.1

net.sf.xdc.util
Class ClasspathURLConnection.StreamHandlerFactory

java.lang.Object
  extended bynet.sf.xdc.util.ClasspathURLConnection.StreamHandlerFactory
All Implemented Interfaces:
java.net.URLStreamHandlerFactory
Enclosing class:
ClasspathURLConnection

public static class ClasspathURLConnection.StreamHandlerFactory
extends java.lang.Object
implements java.net.URLStreamHandlerFactory

This (inner) class is a factory class which produces a suitable URLStreamHandler object which is capable of dealing with the classpath protocol.


Constructor Summary
ClasspathURLConnection.StreamHandlerFactory()
           
 
Method Summary
 java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
          This method creates a URLStreamHandler for the classpath protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathURLConnection.StreamHandlerFactory

public ClasspathURLConnection.StreamHandlerFactory()
Method Detail

createURLStreamHandler

public java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
This method creates a URLStreamHandler for the classpath protocol.

Specified by:
createURLStreamHandler in interface java.net.URLStreamHandlerFactory
Parameters:
protocol - The protocol
Returns:
A new ClasspathURLStreamHandler if the protocol is "classpath"; null otherwise

XDC - v. 0.6.1