|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLConnection
gnu.inet.gopher.GopherURLConnection
public class GopherURLConnection
A Gopher URL connection.
| Field Summary | |
|---|---|
protected GopherConnection |
connection
The connection managing the protocol exchange. |
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
GopherURLConnection(java.net.URL url)
Constructs a Gopher connection to the specified URL. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.net.URLConnection |
|---|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected GopherConnection connection
| Constructor Detail |
|---|
public GopherURLConnection(java.net.URL url)
url - the URL| Method Detail |
|---|
public void connect()
throws java.io.IOException
connect in class java.net.URLConnectionjava.io.IOException
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.URLConnectionjava.io.IOException
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class java.net.URLConnectionjava.io.IOException
public java.lang.Object getContent()
throws java.io.IOException
getContent in class java.net.URLConnectionjava.io.IOException
public java.lang.Object getContent(java.lang.Class[] classes)
throws java.io.IOException
getContent in class java.net.URLConnectionjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||