Class DefaultURLStreamHandler


  • public class DefaultURLStreamHandler
    extends java.net.URLStreamHandler
    A default URL stream handler that will work for most file systems.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.net.URLConnection openConnection​(java.net.URL url)  
      protected void parseURL​(java.net.URL u, java.lang.String spec, int start, int limit)  
      protected java.lang.String toExternalForm​(java.net.URL u)  
      • Methods inherited from class java.net.URLStreamHandler

        equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, sameFile, setURL, setURL
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • openConnection

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

        protected void parseURL​(java.net.URL u,
                                java.lang.String spec,
                                int start,
                                int limit)
        Overrides:
        parseURL in class java.net.URLStreamHandler
      • toExternalForm

        protected java.lang.String toExternalForm​(java.net.URL u)
        Overrides:
        toExternalForm in class java.net.URLStreamHandler