java.net
Class URL
java.lang.Object
java.net.URL
- public class URL
- extends Object
An RCX version of URL that uses the RCX version of Socket.
Socket connects to TCP/IP ports via a
proxy called SocketProxy running on the PC. It uses the
josx.rcxcomm package.
The current version only deals with URLs in the form:
:///, e.g. http://locahost/default.htm
It assumes a port of 80.
Constructor Summary |
URL(String url)
Create a URL from the supplied string. |
URL
public URL(String url)
throws MalformedURLException
- Create a URL from the supplied string.
- Parameters:
url
- the URL
- Throws:
MalformedURLException
openConnection
public URLConnection openConnection()
throws IOException
- Create and open a URL connection using http get.
- Throws:
IOxception
IOException