net.ontopia.net.data
Class Handler
java.lang.Object
java.net.URLStreamHandler
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.
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 |
Handler
public Handler()
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.