Interface DataConnection


public interface DataConnection
The data transfert interface.
Author:
Apache MINA Project
  • Method Details

    • 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 - If the transfer failed
    • 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 - If the transfer failed
    • 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 - If the transfer failed