Class AbstractLocalURLStreamHandler

  • Direct Known Subclasses:
    FileURLStreamHandler, VirtualFileURLStreamHandler

    public abstract class AbstractLocalURLStreamHandler
    extends java.net.URLStreamHandler
    Abstract URLStreamHandler that can be used as a base for other URLStreamHandlers that require the URL to be local.
    Version:
    $Revision$
    Author:
    John Bailey
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void ensureLocal​(java.net.URL url)  
      protected boolean hostsEqual​(java.net.URL url1, java.net.URL url2)  
      protected java.net.URLConnection openConnection​(java.net.URL u, java.net.Proxy p)  
      • Methods inherited from class java.net.URLStreamHandler

        equals, getDefaultPort, getHostAddress, hashCode, 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

      • AbstractLocalURLStreamHandler

        public AbstractLocalURLStreamHandler()
    • Method Detail

      • openConnection

        protected java.net.URLConnection openConnection​(java.net.URL u,
                                                        java.net.Proxy p)
                                                 throws java.io.IOException
        Overrides:
        openConnection in class java.net.URLStreamHandler
        Throws:
        java.io.IOException
      • hostsEqual

        protected boolean hostsEqual​(java.net.URL url1,
                                     java.net.URL url2)
        Overrides:
        hostsEqual in class java.net.URLStreamHandler
      • ensureLocal

        protected void ensureLocal​(java.net.URL url)
                            throws java.io.IOException
        Throws:
        java.io.IOException