|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.impl.IODataConnection
public class IODataConnection
Internal class, do not use directly. An active open data connection, used for transfering data over the data connection.
Constructor Summary | |
---|---|
IODataConnection(Socket socket,
FtpIoSession session,
ServerDataConnectionFactory factory)
|
Method Summary | |
---|---|
protected void |
notifyObserver()
Notify connection manager observer. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IODataConnection(Socket socket, FtpIoSession session, ServerDataConnectionFactory factory)
Method Detail |
---|
public final long transferFromClient(FtpSession session, OutputStream out) throws IOException
DataConnection
transferFromClient
in interface DataConnection
session
- The current FtpSession
out
- The OutputStream
containing the destination of the
data from the client.
IOException
public final long transferToClient(FtpSession session, InputStream in) throws IOException
DataConnection
transferToClient
in interface DataConnection
session
- The current FtpSession
in
- Data to be transfered to the client
IOException
public final void transferToClient(FtpSession session, String str) throws IOException
DataConnection
transferToClient
in interface DataConnection
session
- The current FtpSession
str
- The string to transfer
IOException
protected void notifyObserver()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |