Package java.net

Interface URLStreamHandlerFactory

  • All Known Implementing Classes:
    OkUrlFactory

    public interface URLStreamHandlerFactory
    Defines a factory which creates an URLStreamHandler for a specified protocol. It is used by the class URL.
    • Method Detail

      • createURLStreamHandler

        URLStreamHandler createURLStreamHandler​(String protocol)
        Creates a new URLStreamHandler instance for the given protocol.
        Parameters:
        protocol - the protocol for which a handler is needed.
        Returns:
        the created handler.