org.ocd.streamhandler
Class URLStreamManager

java.lang.Object
  |
  +--org.ocd.streamhandler.URLStreamManager
All Implemented Interfaces:
java.net.URLStreamHandlerFactory

public class URLStreamManager
extends java.lang.Object
implements java.net.URLStreamHandlerFactory

Version:
 
Author:
$author$

Method Summary
 void addProtocolHandler(java.lang.String protocol, java.net.URLStreamHandler handler)
          Add a URLStreamHandler for the specifed Protocol.
 java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
          Create a URLStreamHandler for the specified protocol
static URLStreamManager getDefaultManager()
          Get the DefaultStream Manager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultManager

public static URLStreamManager getDefaultManager()
Get the DefaultStream Manager

addProtocolHandler

public void addProtocolHandler(java.lang.String protocol,
                               java.net.URLStreamHandler handler)
                        throws ProtocolSetException
Add a URLStreamHandler for the specifed Protocol.
Parameters:
protocol - to add a handler for
handler - is the Handler that will manage the protocol
Throws:
ProtocolAddException - if the protocol already has a handler defined

createURLStreamHandler

public java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
Create a URLStreamHandler for the specified protocol
Specified by:
createURLStreamHandler in interface java.net.URLStreamHandlerFactory