gnu.inet.gopher
Class GopherURLConnection
URLConnection
gnu.inet.gopher.GopherURLConnection
public class GopherURLConnection
extends URLConnection
A Gopher URL connection.
connection
protected GopherConnection connection
The connection managing the protocol exchange.
GopherURLConnection
public GopherURLConnection(URL url)
Constructs a Gopher connection to the specified URL.
connect
public void connect()
throws IOException
Establishes the connection.
getContent
public Object getContent()
throws IOException
getContent
public Object getContent(Class[] classes)
throws IOException
getInputStream
public InputStream getInputStream()
throws IOException
Returns an input stream that reads from this open connection.
getOutputStream
public OutputStream getOutputStream()
throws IOException
Returns an output stream that writes to this connection.