org.apache.ftpserver.ftplet
Interface DataConnection

All Known Implementing Classes:
IODataConnection

public interface DataConnection

Author:
Apache MINA Project

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

Method Detail

transferFromClient

long transferFromClient(FtpSession session,
                        OutputStream out)
                        throws 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:
IOException

transferToClient

long transferToClient(FtpSession session,
                      InputStream in)
                      throws 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:
IOException

transferToClient

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

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


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