|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.URLConnection
gnu.inet.ftp.FTPURLConnection
public class FTPURLConnection
An FTP URL connection.
Field Summary | |
---|---|
protected FTPConnection |
connection
The connection managing the protocol exchange. |
protected int |
fileStructure
|
protected boolean |
passive
|
protected int |
representationType
|
protected int |
transferMode
|
Fields inherited from class java.net.URLConnection |
---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
---|---|
FTPURLConnection(java.net.URL url)
Constructs an FTP connection to the specified URL. |
Method Summary | |
---|---|
void |
addRequestProperty(java.lang.String key,
java.lang.String value)
|
void |
connect()
Establishes the connection. |
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. |
java.util.Map |
getRequestProperties()
|
java.lang.String |
getRequestProperty(java.lang.String key)
|
void |
setDoInput(boolean doinput)
This connection supports doInput. |
void |
setDoOutput(boolean dooutput)
This connection supports doOutput. |
void |
setRequestProperty(java.lang.String key,
java.lang.String value)
|
Methods inherited from class java.net.URLConnection |
---|
getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getReadTimeout, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setFileNameMap, setIfModifiedSince, setReadTimeout, setUseCaches, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected FTPConnection connection
protected boolean passive
protected int representationType
protected int fileStructure
protected int transferMode
Constructor Detail |
---|
public FTPURLConnection(java.net.URL url)
url
- the URLMethod Detail |
---|
public void connect() throws java.io.IOException
connect
in class java.net.URLConnection
java.io.IOException
public void setDoInput(boolean doinput)
setDoInput
in class java.net.URLConnection
public void setDoOutput(boolean dooutput)
setDoOutput
in class java.net.URLConnection
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.URLConnection
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in class java.net.URLConnection
java.io.IOException
public java.lang.String getRequestProperty(java.lang.String key)
getRequestProperty
in class java.net.URLConnection
public java.util.Map getRequestProperties()
getRequestProperties
in class java.net.URLConnection
public void setRequestProperty(java.lang.String key, java.lang.String value)
setRequestProperty
in class java.net.URLConnection
public void addRequestProperty(java.lang.String key, java.lang.String value)
addRequestProperty
in class java.net.URLConnection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |