gnu.inet.ftp
Class FTPURLConnection
URLConnection
gnu.inet.ftp.FTPURLConnection
public class FTPURLConnection
extends URLConnection
An FTP URL connection.
connection
protected FTPConnection connection
The connection managing the protocol exchange.
fileStructure
protected int fileStructure
passive
protected boolean passive
representationType
protected int representationType
transferMode
protected int transferMode
FTPURLConnection
public FTPURLConnection(URL url)
Constructs an FTP connection to the specified URL.
addRequestProperty
public void addRequestProperty(String key,
String value)
connect
public void connect()
throws IOException
Establishes the connection.
getInputStream
public InputStream getInputStream()
throws IOException
Returns an input stream that reads from this open connection.
getOutputStream
public OutputStream getOutputStream()
throws IOException
Returns an output stream that writes to this connection.
getRequestProperties
public Map getRequestProperties()
getRequestProperty
public String getRequestProperty(String key)
setDoInput
public void setDoInput(boolean doinput)
This connection supports doInput.
setDoOutput
public void setDoOutput(boolean dooutput)
This connection supports doOutput.
setRequestProperty
public void setRequestProperty(String key,
String value)
© Copyright 2003 The Free Software Foundation,
all rights reserved