gnu.inet.gopher
Class GopherURLConnection
java.lang.Object
java.net.URLConnection
gnu.inet.gopher.GopherURLConnection
public class GopherURLConnection
extends java.net.URLConnection
A Gopher URL connection.
Version:
- Chris Burdess
void | connect() - Establishes the connection.
|
java.lang.Object | getContent()
|
java.lang.Object | getContent(java.lang.Class[] classes)
|
java.io.InputStream | getInputStream() - Returns an input stream that reads from this open connection.
|
java.io.OutputStream | getOutputStream() - Returns an output stream that writes to this connection.
|
connection
protected GopherConnection connection
The connection managing the protocol exchange.
GopherURLConnection
public GopherURLConnection(java.net.URL url)
Constructs a Gopher connection to the specified URL.
url
- the URL
connect
public void connect()
throws java.io.IOException
Establishes the connection.
getContent
public java.lang.Object getContent()
throws java.io.IOException
getContent
public java.lang.Object getContent(java.lang.Class[] classes)
throws java.io.IOException
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
Returns an input stream that reads from this open connection.
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
Returns an output stream that writes to this connection.
© Copyright 2003 The Free Software Foundation,
all rights reserved