org.apache.stylebook
Class URLHandler

java.lang.Object
  extended by org.apache.stylebook.URLHandler
All Implemented Interfaces:
URLStreamHandlerFactory

public class URLHandler
extends Object
implements URLStreamHandlerFactory

The URLHandler class implements URLStreamHandlerFactory, wich is the factory used by StyleBook to produce URLConnections.
Handled by this factory are the "res" protocol (wich handles resources derived from the actual or the system class loaders) and the "sbk" protocol wich handles files in the style name space and the sources name space.

Version:
CVS $Revision: 313217 $ $Date: 1999-12-01 14:21:27 +0000 (Wed, 01 Dec 1999) $
Author:
Pierpaolo Fumagalli, Copyright 1999 © The Apache Software Foundation. All rights reserved.

Constructor Summary
URLHandler()
           
URLHandler(File sources, File style)
           
 
Method Summary
 URLStreamHandler createURLStreamHandler(String protocol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLHandler

public URLHandler()

URLHandler

public URLHandler(File sources,
                  File style)
           throws IOException
Throws:
IOException
Method Detail

createURLStreamHandler

public URLStreamHandler createURLStreamHandler(String protocol)
Specified by:
createURLStreamHandler in interface URLStreamHandlerFactory