java.net
Class URLConnection
java.lang.Object
|
+--java.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.
- Author:
- Lawrie Griffiths
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 toport
- the port to connect topath
- the file to get
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.