URLImpl

public final class URLImpl extends Object

J2ObjC-specific delegate of URL, to support the separation of jre_net dependencies from jre_core. URL needs to be core because core classes like ClassLoader reference URL publicly.

Public Constructor Summary

Public Method Summary

boolean
equals(URL u1, URL u2)
int
Object
getURLStreamHandler(String protocol)
Returns the Stream Handler.
int
hashCode(URL url)
void
initURL(URL url, URL context, String spec, Object handler)
URLConnection
URLConnection
openConnection(URL url, Object proxy)
boolean
sameFile(URL u1, URL u2)
void
String

Inherited Method Summary

Public Constructors

public URLImpl ()

Public Methods

public boolean equals (URL u1, URL u2)

Parameters
u1
u2

public int getDefaultPort (URL url)

Parameters
url

public Object getURLStreamHandler (String protocol)

Returns the Stream Handler.

Parameters
protocol the protocol to use

public int hashCode (URL url)

Parameters
url

public void initURL (URL url, URL context, String spec, Object handler)

Parameters
url
context
spec
handler

public URLConnection openConnection (URL url)

Parameters
url
Throws
IOException

public URLConnection openConnection (URL url, Object proxy)

Parameters
url
proxy
Throws
IOException

public boolean sameFile (URL u1, URL u2)

Parameters
u1
u2

public void setURLStreamHandlerFactory (Object fac)

Parameters
fac

public String toExternalForm (URL url)

Parameters
url