net.sf.doolin.gui.service.icon
Class IconURLStreamHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by net.sf.doolin.gui.service.icon.IconURLStreamHandler

public class IconURLStreamHandler
extends URLStreamHandler

URL stream handler that handles the "icon:" protocol by calling a IconService instance.

The URL has the form:

 icon:key?param=value&param=value&...
 
where key is used as the icon key and parameters can be:

Author:
Damien Coraboeuf

Field Summary
static String PROTOCOL_ICON
          Action protocol
 
Constructor Summary
IconURLStreamHandler(IconService iconService)
          Constructor
 
Method Summary
protected  URLConnection openConnection(URL u)
           
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL_ICON

public static final String PROTOCOL_ICON
Action protocol

See Also:
Constant Field Values
Constructor Detail

IconURLStreamHandler

public IconURLStreamHandler(IconService iconService)
Constructor

Parameters:
iconService - Icon service to call.
Method Detail

openConnection

protected URLConnection openConnection(URL u)
                                throws IOException
Specified by:
openConnection in class URLStreamHandler
Throws:
IOException
See Also:
URLStreamHandler.openConnection(java.net.URL)


Copyright © 2011. All Rights Reserved.