Package org.apache.ftpserver.ftplet
Interface DataConnection
public interface DataConnection
The data transfert interface.
- Author:
- Apache MINA Project
-
Method Summary
Modifier and TypeMethodDescriptionlongtransferFromClient(FtpSession session, OutputStream out) Transfer data from the client (e.g.longtransferToClient(FtpSession session, InputStream in) Transfer data to the client (e.g.voidtransferToClient(FtpSession session, String str) Transfer a string to the client, e.g. during LIST
-
Method Details
-
transferFromClient
Transfer data from the client (e.g. STOR).- Parameters:
session- The currentFtpSessionout- TheOutputStreamcontaining the destination of the data from the client.- Returns:
- The length of the transferred data
- Throws:
IOException- If the transfer failed
-
transferToClient
Transfer data to the client (e.g. RETR).- Parameters:
session- The currentFtpSessionin- Data to be transfered to the client- Returns:
- The length of the transferred data
- Throws:
IOException- If the transfer failed
-
transferToClient
Transfer a string to the client, e.g. during LIST- Parameters:
session- The currentFtpSessionstr- The string to transfer- Throws:
IOException- If the transfer failed
-