net.sf.doolin.util
Class URLUtils

java.lang.Object
  extended by net.sf.doolin.util.URLUtils

public class URLUtils
extends Object

Utilities for URLs

Author:
Damien Coraboeuf

Nested Class Summary
protected static class URLUtils.GlobalURLStreamHandlerFactory
          Global stream handler factory
 
Method Summary
protected static void init()
          Initialization of the utility class.
static void registerURLStreamHandler(String protocol, URLStreamHandler handler)
          Registers a new stream handler for a given protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerURLStreamHandler

public static void registerURLStreamHandler(String protocol,
                                            URLStreamHandler handler)
Registers a new stream handler for a given protocol.

Parameters:
protocol - Protocol to register the handler for
handler - Handler associated with this protocol

init

protected static void init()
Initialization of the utility class. It registers a global URL stream handler, which in turn is able to manage the registration of supplementary handlers for different protocols.



Copyright © 2011. All Rights Reserved.