Class URL
java.lang.Object
com.codename1.io.URL
public class URL
extends java.lang.Object
This class provides a similar API to
URL making it almost into a "drop in" replacement.
It is placed in a different package because it is incompatible to URL by definition. It is useful
in getting some simple code to work without too many changes-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
URL
- Throws:
java.net.URISyntaxException
-
-
Method Details
-
getQuery
-
getPath
-
getUserInfo
-
getAuthority
-
getPort
public int getPort() -
getDefaultPort
public int getDefaultPort() -
getProtocol
-
getHost
-
getFile
-
equals
public boolean equals(java.lang.Object o) - Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
sameFile
-
toString
- Overrides:
toStringin classjava.lang.Object
-
toExternalForm
-
toURI
public java.net.URI toURI() throws java.net.URISyntaxException- Throws:
java.net.URISyntaxException
-
openConnection
- Throws:
java.io.IOException
-
openStream
public final java.io.InputStream openStream() throws java.io.IOException- Throws:
java.io.IOException
-