java.net
Class URLConnection

java.lang.Object
  extended byjava.net.URLConnection

public class URLConnection
extends Object

An RCX version of URLConnection that uses the RCX version of Socket. Socket uses a proxy called SocketProxy running on the PC. It connects to it using the josx.rcxcomm package. This version ignores all http headers.


Constructor Summary
URLConnection(String host, int port, String path)
          Connects to a Socket via the proxy on the PC.
 
Method Summary
 InputStream getInputStream()
          Returns an input stream for this URLConnection.
 OutputStream getOutputStream()
          Returns an output stream for this URLConnection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

URLConnection

public URLConnection(String host,
                     int port,
                     String path)
              throws IOException
Connects to a Socket via the proxy on the PC.

Parameters:
host - the host to connect to
port - the port to connect to
path - the file to get
Method Detail

getInputStream

public InputStream getInputStream()
Returns an input stream for this URLConnection.

Returns:
an input stream for reading bytes from this URLConnection.

getOutputStream

public OutputStream getOutputStream()
Returns an output stream for this URLConnection.

Returns:
an output stream for writing bytes to this URLConnection.