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, toString
protected 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.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