gnu.inet.ftp

Class FTPURLConnection


public class FTPURLConnection
extends URLConnection

An FTP URL connection.

Version:
$Revision: 1.7 $ $Date: 2004/07/30 20:56:02 $

Author:
Chris Burdess

Field Summary

protected FTPConnection
connection
The connection managing the protocol exchange.
protected int
fileStructure
protected boolean
passive
protected int
representationType
protected int
transferMode

Constructor Summary

FTPURLConnection(URL url)
Constructs an FTP connection to the specified URL.

Method Summary

void
addRequestProperty(String key, String value)
void
connect()
Establishes the connection.
InputStream
getInputStream()
Returns an input stream that reads from this open connection.
OutputStream
getOutputStream()
Returns an output stream that writes to this connection.
Map
getRequestProperties()
String
getRequestProperty(String key)
void
setDoInput(boolean doinput)
This connection supports doInput.
void
setDoOutput(boolean dooutput)
This connection supports doOutput.
void
setRequestProperty(String key, String value)

Field Details

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

Constructor Details

FTPURLConnection

public FTPURLConnection(URL url)
Constructs an FTP connection to the specified URL.

Parameters:
url - the URL

Method Details

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