org.apache.ftpserver
Class IODataConnection

java.lang.Object
  extended by org.apache.ftpserver.IODataConnection
All Implemented Interfaces:
DataConnection

public class IODataConnection
extends java.lang.Object
implements DataConnection

An active open data connection, used for transfering data over the data connection.


Constructor Summary
IODataConnection(java.net.Socket socket, FtpIoSession session, ServerDataConnectionFactory factory)
           
 
Method Summary
protected  void notifyObserver()
          Notify connection manager observer.
 long transferFromClient(java.io.OutputStream out)
           
 long transferToClient(java.io.InputStream in)
           
 void transferToClient(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IODataConnection

public IODataConnection(java.net.Socket socket,
                        FtpIoSession session,
                        ServerDataConnectionFactory factory)
Method Detail

transferFromClient

public final long transferFromClient(java.io.OutputStream out)
                              throws java.io.IOException
Specified by:
transferFromClient in interface DataConnection
Throws:
java.io.IOException

transferToClient

public final long transferToClient(java.io.InputStream in)
                            throws java.io.IOException
Specified by:
transferToClient in interface DataConnection
Throws:
java.io.IOException

transferToClient

public final void transferToClient(java.lang.String str)
                            throws java.io.IOException
Specified by:
transferToClient in interface DataConnection
Throws:
java.io.IOException

notifyObserver

protected void notifyObserver()
Notify connection manager observer.



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