it.sauronsoftware.ftp4j
Interface FTPConnection


public interface FTPConnection

Instances of this one represent connections with remote hosts.

Author:
Carlo Pelliccia

Method Summary
 void close()
          This method closes the connection.
 java.io.InputStream getInputStream()
          This method returns the InputStream for this connection.
 java.io.OutputStream getOutputStream()
          This method returns the OutputStream for this connection.
 

Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
This method returns the InputStream for this connection.

Returns:
The InputStream for this connection.
Throws:
java.io.IOException - If an I/O error occurs when creating the stream.

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
This method returns the OutputStream for this connection.

Returns:
The OutputStream for this connection.
Throws:
java.io.IOException - If an I/O error occurs when creating the stream.

close

public void close()
           throws java.io.IOException
This method closes the connection.

Throws:
java.io.IOException - If an I/O error occurs when closing the connection.