|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgnu.inet.gopher.GopherConnection
public class GopherConnection
A gopher client.
| Field Summary | |
|---|---|
static int |
DEFAULT_PORT
The default gopher port. |
protected java.io.InputStream |
in
|
protected java.io.OutputStream |
out
|
protected java.net.Socket |
socket
|
| Constructor Summary | |
|---|---|
GopherConnection(java.lang.String host)
Creates a new connection to the gopher server at the specified hostname. |
|
GopherConnection(java.lang.String host,
int port)
Creates a new connection to the gopher server at the specified hostname with the specified non-standard port. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
get(java.lang.String selector)
Returns the resource identified by the specified selector. |
DirectoryListing |
list()
Returns the directory listing for this gopher server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_PORT
protected java.net.Socket socket
protected java.io.InputStream in
protected java.io.OutputStream out
| Constructor Detail |
|---|
public GopherConnection(java.lang.String host)
throws java.io.IOException
hostname - the hostname
java.io.IOException
public GopherConnection(java.lang.String host,
int port)
throws java.io.IOException
hostname - the hostnameport - the non-standard port to use
java.io.IOException| Method Detail |
|---|
public DirectoryListing list()
throws java.io.IOException
java.io.IOException
public java.io.InputStream get(java.lang.String selector)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||