Packages  This Package  Prev  Next  Index  

§4.14 Interface URLStreamHandlerFactory

public  interface  java.net.URLStreamHandlerFactory
{
        // Methods
    public abstract URLStreamHandler	§4.14.1
        createURLStreamHandler(String  protocol);
}
This interface defines a factory for URL stream protocol handlers.

It is used by the URL class (I-§4.8) to create a URLStreamHandler (I-§4.11) for a specific protocol.


Methods

createURLStreamHandler

public abstract URLStreamHandler
createURLStreamHandler(String protocol)
Parameters:
protocol - the protocol ("ftp", "http", "nntp", etc.)
Returns:
a URLStreamHandler (I-§4.11) for the specific protocol.

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com