gnu.inet.gopher

Class GopherURLConnection


public class GopherURLConnection
extends URLConnection

A Gopher URL connection.
Author:
Chris Burdess

Field Summary

protected GopherConnection
connection
The connection managing the protocol exchange.

Constructor Summary

GopherURLConnection(URL url)
Constructs a Gopher connection to the specified URL.

Method Summary

void
connect()
Establishes the connection.
Object
getContent()
Object
getContent(Class[] classes)
InputStream
getInputStream()
Returns an input stream that reads from this open connection.
OutputStream
getOutputStream()
Returns an output stream that writes to this connection.

Field Details

connection

protected GopherConnection connection
The connection managing the protocol exchange.

Constructor Details

GopherURLConnection

public GopherURLConnection(URL url)
Constructs a Gopher connection to the specified URL.
Parameters:
url - the URL

Method Details

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.

© Copyright 2003 The Free Software Foundation, all rights reserved