public class GopherClient extends NetworkClient implements Runnable
| Modifier and Type | Field and Description |
|---|---|
(package private) URLConnection |
connection |
(package private) String |
gkey |
static String |
gopherProxyHost
Deprecated.
|
static int |
gopherProxyPort
Deprecated.
|
(package private) int |
gtype |
(package private) PipedOutputStream |
os |
(package private) URL |
u |
static boolean |
useGopherProxy
Deprecated.
|
connectTimeout, defaultConnectTimeout, defaultSoTimeout, encoding, proxy, readTimeout, serverInput, serverOutput, serverSocket| Constructor and Description |
|---|
GopherClient(URLConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getGopherProxyHost() |
static int |
getGopherProxyPort() |
static boolean |
getUseGopherProxy() |
(package private) InputStream |
openStream(URL u)
Given a url, setup to fetch the gopher document it refers to
|
void |
run()
This method is run as a seperate thread when an incoming gopher
document requires translation to html
|
closeServer, createSocket, doConnect, getConnectTimeout, getLocalAddress, getReadTimeout, openServer, serverIsOpen, setConnectTimeout, setReadTimeout@Deprecated public static boolean useGopherProxy
@Deprecated public static String gopherProxyHost
@Deprecated public static int gopherProxyPort
int gtype
URLConnection connection
GopherClient(URLConnection connection)
public static boolean getUseGopherProxy()
public static String getGopherProxyHost()
public static int getGopherProxyPort()
InputStream openStream(URL u) throws IOException
IOExceptionpublic void run()
run in interface RunnableThread.run()