Class Handler


  • public class Handler
    extends java.net.URLStreamHandler
    Protocol handler for data: URLs. This class must be named "Handler" and in a package "data" (fixed named convention)!

    See StackOverflow.

    Since:
    10931
    • Constructor Summary

      Constructors 
      Constructor Description
      Handler()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void install()
      Installs protocol handler.
      protected java.net.URLConnection openConnection​(java.net.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
    • Constructor Detail

    • Method Detail

      • openConnection

        protected java.net.URLConnection openConnection​(java.net.URL u)
                                                 throws java.io.IOException
        Specified by:
        openConnection in class java.net.URLStreamHandler
        Throws:
        java.io.IOException
      • install

        public static void install()
        Installs protocol handler.