net.ontopia.net.data
Class Handler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by net.ontopia.net.data.Handler

public class Handler
extends URLStreamHandler

PUBLIC: A data URL protocol handler. See RFC 2397, ftp://sunsite.uio.no/pub/rfc/rfc2397.txt, for more information about data URLs.

Call the install method to install the handler in your Java VM.


Constructor Summary
Handler()
           
 
Method Summary
static void install()
          PUBLIC: Calling this method makes the data URL handler install itself in the JVM so that the java.net.URL constructor can create data: URLs.
 URLConnection openConnection(URL url)
           
 
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
 

Constructor Detail

Handler

public Handler()
Method Detail

openConnection

public URLConnection openConnection(URL url)
                             throws IOException
Specified by:
openConnection in class URLStreamHandler
Throws:
IOException

install

public static void install()
PUBLIC: Calling this method makes the data URL handler install itself in the JVM so that the java.net.URL constructor can create data: URLs. The method is idempotent; that is, after it is called the first time later calls have no effect.



Copyright © 2000-2012 Ontopia.