* @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
* @version $Revision$
*/
-public class DirContextURLStreamHandler
- extends URLStreamHandler {
+public class DirContextURLStreamHandler extends URLStreamHandler {
// ----------------------------------------------------------- Constructors
/**
- * Set the java.protocol.handler.pkgs system property.
- */
- public static void setProtocolHandler() {
- String value = System.getProperty(Constants.PROTOCOL_HANDLER_VARIABLE);
- if (value == null) {
- value = Constants.Package;
- System.setProperty(Constants.PROTOCOL_HANDLER_VARIABLE, value);
- } else if (value.indexOf(Constants.Package) == -1) {
- value += "|" + Constants.Package;
- System.setProperty(Constants.PROTOCOL_HANDLER_VARIABLE, value);
- }
- }
-
-
- /**
* Returns true if the thread or the context class loader of the current
* thread is bound.
*/