java.net
Interface URLStreamHandlerFactory


public interface URLStreamHandlerFactory

This interface defines a factory for URLStreamHandler instances. It is used by the URL class to create URLStreamHandlers for various streams.


Method Summary
 URLStreamHandler createURLStreamHandler(String protocol)
          Creates a new URLStreamHandler instance with the specified protocol.
 

Method Detail

createURLStreamHandler

public URLStreamHandler createURLStreamHandler(String protocol)
Creates a new URLStreamHandler instance with the specified protocol.

Parameters:
protocol - the protocol to use (ftp, http, nntp, etc.)