org.apache.ftpserver.ftplet
Interface DataConnection


public interface DataConnection


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

Method Detail

transferFromClient

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

Parameters:
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(java.io.InputStream in)
                      throws java.io.IOException
Transfer data to the client (e.g. RETR).

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

transferToClient

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

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


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.