URLStreamHandlerFactory

public interface URLStreamHandlerFactory

Defines a factory which creates an URLStreamHandler for a specified protocol. It is used by the class URL.

Public Method Summary

abstract URLStreamHandler
createURLStreamHandler(String protocol)
Creates a new URLStreamHandler instance for the given protocol.

Public Methods

public abstract 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.