Class URLHandler

  • All Implemented Interfaces:
    java.net.URLStreamHandlerFactory

    public class URLHandler
    extends java.lang.Object
    implements java.net.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 15:21:27 +0100 (Wed, 01 Dec 1999) $
    Author:
    Pierpaolo Fumagalli, Copyright 1999 © The Apache Software Foundation. All rights reserved.
    • Constructor Summary

      Constructors 
      Constructor Description
      URLHandler()  
      URLHandler​(java.io.File sources, java.io.File style)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.URLStreamHandler createURLStreamHandler​(java.lang.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​(java.io.File sources,
                          java.io.File style)
                   throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • createURLStreamHandler

        public java.net.URLStreamHandler createURLStreamHandler​(java.lang.String protocol)
        Specified by:
        createURLStreamHandler in interface java.net.URLStreamHandlerFactory