java.net

Interface URLStreamHandlerFactory

public interface URLStreamHandlerFactory

This interface contains one method which maps the protocol portion of a URL (eg, "http" in "http://www.urbanophile.com/arenn/") to a URLStreamHandler object.
Method Summary
URLStreamHandlercreateURLStreamHandler(String protocol)
This method maps the protocol portion of a URL to a URLStreamHandler object.

Method Detail

createURLStreamHandler

public URLStreamHandler createURLStreamHandler(String protocol)
This method maps the protocol portion of a URL to a URLStreamHandler object.

Parameters: protocol The protocol name to map ("http", "ftp", etc).

Returns: The URLStreamHandler for the specified protocol