java.net.StreamHandlerFactory
None
None
None
JDK 1.0 or later
The URLStreamHandlerFactory interface defines a method that creates a URLStreamHandler object for a specific protocol. The interface is implemented by classes that select URLStreamHandler subclasses to process particular protocol types.
The URL class uses a URLStreamHandlerFactory to create URLStreamHandler objects. The protocol type is determined by the portion of the URL up to the first colon. For example, given the following URL:
http://www.tolstoi.org/ilych.html
the protocol type is http. A URLStreamHandlerFactory that recognizes http returns a URLStreamHandler that can process the URL.
public abstract interface java.net.URLStreamHandlerFactory { // Methods public abstract URLStreamHandler createURLStreamHandler(String protocol); }
A String that represents a protocol.
This method creates an object of the appropriate subclass of URLStreamHandler that can process a URL using the named protocol.
URL, URLStreamHandler
This HTML Help has been published using the chm2web software. |