public class FTPURLConnection
extends java.net.URLConnection
| Modifier and Type | Field and Description |
|---|---|
protected FTPConnection |
connection
The connection managing the protocol exchange.
|
protected int |
fileStructure |
protected boolean |
passive |
protected int |
representationType |
protected int |
transferMode |
| Constructor and Description |
|---|
FTPURLConnection(java.net.URL url)
Constructs an FTP connection to the specified URL.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getReadTimeout, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setFileNameMap, setIfModifiedSince, setReadTimeout, setUseCaches, toStringprotected FTPConnection connection
protected boolean passive
protected int representationType
protected int fileStructure
protected int transferMode
public FTPURLConnection(java.net.URL url)
url - the URLpublic void connect()
throws java.io.IOException
connect in class java.net.URLConnectionjava.io.IOExceptionpublic void setDoInput(boolean doinput)
setDoInput in class java.net.URLConnectionpublic void setDoOutput(boolean dooutput)
setDoOutput in class java.net.URLConnectionpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.URLConnectionjava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class java.net.URLConnectionjava.io.IOExceptionpublic java.lang.String getRequestProperty(java.lang.String key)
getRequestProperty in class java.net.URLConnectionpublic java.util.Map getRequestProperties()
getRequestProperties in class java.net.URLConnectionpublic void setRequestProperty(java.lang.String key,
java.lang.String value)
setRequestProperty in class java.net.URLConnectionpublic void addRequestProperty(java.lang.String key,
java.lang.String value)
addRequestProperty in class java.net.URLConnection© Copyright 2003 The Free Software Foundation, all rights reserved