danger.net
Class URL

java.lang.Object
  |
  +--danger.net.URL

public class URL
extends java.lang.Object


Constructor Summary
URL(java.lang.String spec)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static boolean equalURL(java.lang.String s1, java.lang.String s2)
           
static boolean equalURLNoFragment(java.lang.String url1, java.lang.String url2)
           
 java.lang.String getArgument(java.lang.String inKey)
           
 java.lang.Object getContent()
           
 java.lang.String getFile()
           
 java.lang.String getHost()
           
 int getPort()
           
 java.lang.String getProtocol()
           
static java.lang.String getProtocol(java.lang.String spec)
           
 java.lang.String getRef()
           
 java.lang.String getSpec()
           
static void gotoURL(java.lang.String inURL)
           
static void gotoURL(URL inURL)
           
 int hashCode()
           
 URLConnection openConnection()
           
 java.io.InputStream openStream()
           
protected  void parseURL(java.lang.String spec)
          public URL(String protocol, String host, int port, String file) throws MalformedURLException { mProtocol = protocol; mHost = host; mPort = port; mFile = file; } public URL(String protocol, String host, String file) throws MalformedURLException { mProtocol = protocol; mHost = host; mFile = file; } public URL(URL context, String spec) throws MalformedURLException { }
 boolean sameFile(URL other)
           
protected  void set(java.lang.String protocol, java.lang.String host, int port, java.lang.String file, java.lang.String ref)
           
static void setURLStreamHandlerFactory(URLStreamHandlerFactory fac)
           
 java.lang.String toExternalForm()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URL

public URL(java.lang.String spec)
Method Detail

gotoURL

public static void gotoURL(java.lang.String inURL)
                    throws URLException

gotoURL

public static void gotoURL(URL inURL)
                    throws URLException

parseURL

protected void parseURL(java.lang.String spec)
public URL(String protocol, String host, int port, String file) throws MalformedURLException { mProtocol = protocol; mHost = host; mPort = port; mFile = file; } public URL(String protocol, String host, String file) throws MalformedURLException { mProtocol = protocol; mHost = host; mFile = file; } public URL(URL context, String spec) throws MalformedURLException { }

getContent

public final java.lang.Object getContent()
                                  throws java.io.IOException

openStream

public final java.io.InputStream openStream()
                                     throws java.io.IOException

openConnection

public URLConnection openConnection()
                             throws java.io.IOException

setURLStreamHandlerFactory

public static void setURLStreamHandlerFactory(URLStreamHandlerFactory fac)

set

protected void set(java.lang.String protocol,
                   java.lang.String host,
                   int port,
                   java.lang.String file,
                   java.lang.String ref)

getSpec

public java.lang.String getSpec()

getPort

public int getPort()

getProtocol

public java.lang.String getProtocol()

getHost

public java.lang.String getHost()

getFile

public java.lang.String getFile()

getRef

public java.lang.String getRef()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

sameFile

public boolean sameFile(URL other)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toExternalForm

public java.lang.String toExternalForm()

equalURLNoFragment

public static boolean equalURLNoFragment(java.lang.String url1,
                                         java.lang.String url2)

equalURL

public static boolean equalURL(java.lang.String s1,
                               java.lang.String s2)

getProtocol

public static java.lang.String getProtocol(java.lang.String spec)

getArgument

public final java.lang.String getArgument(java.lang.String inKey)


Danger Confidential. Copyright © 2000-2003, Danger Inc.