home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

Java in a Nutshell

Previous Chapter 28
The java.net Package

28.25 java.net.URLStreamHandler (JDK 1.0)

This abstract class defines the openConnection() method that creates a URLConnection for a given URL. A separate subclass of this class may be defined for various URL protocol types. A URLStreamHandler is created by a URLStreamHandlerFactory.

Normal applications never need to use or subclass this class.

public abstract class URLStreamHandler extends Object {
    // Default Constructor: public URLStreamHandler()
    // Protected Instance Methods
            protected abstract URLConnection openConnection(URL u) throws IOException;
            protected void parseURL(URL u, String spec, int start, int limit);
            protected void setURL(URL u, String protocol, String host, int port, String file, String ref);
            protected String toExternalForm(URL u);

Returned By:


Previous Home Next
java.net.URLEncoder (JDK 1.0) Book Index java.net.URLStreamHandlerFactory (JDK 1.0)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java