API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.net. URLStreamHandler View Source
Author(s)
James Gosling
Since
JDK1.0
Version
1.73, 04/07/06
Serial
Hierarchy
 Object
      URLStreamHandler
Implements
Subclasses
Description
publicabstract abstract class URLStreamHandler
  The abstract class URLStreamHandler is the common superclass for all stream protocol handlers.
Constructors
public URLStreamHandler ()
Methods
Hide/Show inherited methods
protected boolean equals (URL u1, URL u2)
  Provides the default equals calculation.
protected int getDefaultPort ()
  Returns the default port for a URL parsed by this handler.
protectedsynchronized InetAddress getHostAddress (URL u)
  Get the IP address of our host.
protected int hashCode (URL u)
  Provides the default hash calculation.
protected boolean hostsEqual (URL u1, URL u2)
  Compares the host components of two URLs.
protectedabstract URLConnection openConnection (URL u) throws IOException
  Opens a connection to the object referenced by the URL argument.
protected URLConnection openConnection (URL u, Proxy p) throws IOException
  Same as openConnection(URL), except that the connection will be made through the specified proxy; Protocol handlers that do not support proxying will ignore the proxy parameter and make a normal connection.
protected void parseURL (URL u, String spec, int start, int limit)
  Parses the string representation of a URL into a URL object.
protected boolean sameFile (URL u1, URL u2)
  Compare two urls to see whether they refer to the same file, i.e., having the same protocol, host, port, and path.
@Deprecated
protected void setURL (URL u, String protocol, String host, int port, String file, String ref)
  Sets the fields of the URL argument to the indicated values.
protected void setURL (URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref)
  Sets the fields of the URL argument to the indicated values.
protected String toExternalForm (URL u)
  Converts a URL of a specific protocol to a String.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar