src/java.base/share/classes/java/net/URLStreamHandlerFactory.java

Print this page

        

@@ -42,10 +42,12 @@
      * Creates a new {@code URLStreamHandler} instance with the specified
      * protocol.
      *
      * @param   protocol   the protocol ("{@code ftp}",
      *                     "{@code http}", "{@code nntp}", etc.).
-     * @return  a {@code URLStreamHandler} for the specific protocol.
+     * @return  a {@code URLStreamHandler} for the specific protocol, or {@code
+     *          null} if this factory cannot create a handler for the specific
+     *          protocol
      * @see     java.net.URLStreamHandler
      */
     URLStreamHandler createURLStreamHandler(String protocol);
 }