org.apache.ftpserver.ftplet
Interface DataConnection

All Known Implementing Classes:
IODataConnection

public interface DataConnection

Version:
$Rev$, $Date$
Author:
The Apache MINA Project (dev@mina.apache.org)

Method Summary
 long transferFromClient(FtpSession session, java.io.OutputStream out)
          Transfer data from the client (e.g.
 long transferToClient(FtpSession session, java.io.InputStream in)
          Transfer data to the client (e.g.
 void transferToClient(FtpSession session, java.lang.String str)
          Transfer a string to the client, e.g.
 

Method Detail

transferFromClient

long transferFromClient(FtpSession session,
                        java.io.OutputStream out)
                        throws java.io.IOException
Transfer data from the client (e.g. STOR).

Parameters:
session - The current FtpSession
out - The OutputStream containing the destination of the data from the client.
Returns:
The length of the transferred data
Throws:
java.io.IOException

transferToClient

long transferToClient(FtpSession session,
                      java.io.InputStream in)
                      throws java.io.IOException
Transfer data to the client (e.g. RETR).

Parameters:
session - The current FtpSession
in - Data to be transfered to the client
Returns:
The length of the transferred data
Throws:
java.io.IOException

transferToClient

void transferToClient(FtpSession session,
                      java.lang.String str)
                      throws java.io.IOException
Transfer a string to the client, e.g. during LIST

Parameters:
session - The current FtpSession
str - The string to transfer
Throws:
java.io.IOException


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.