public class IODataConnection extends Object implements DataConnection
| Constructor and Description |
|---|
IODataConnection(Socket socket,
FtpIoSession session,
ServerDataConnectionFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public IODataConnection(Socket socket, FtpIoSession session, ServerDataConnectionFactory factory)
public final long transferFromClient(FtpSession session, OutputStream out) throws IOException
DataConnectiontransferFromClient in interface DataConnectionsession - The current FtpSessionout - The OutputStream containing the destination of the
data from the client.IOExceptionpublic final long transferToClient(FtpSession session, InputStream in) throws IOException
DataConnectiontransferToClient in interface DataConnectionsession - The current FtpSessionin - Data to be transfered to the clientIOExceptionpublic final void transferToClient(FtpSession session, String str) throws IOException
DataConnectiontransferToClient in interface DataConnectionsession - The current FtpSessionstr - The string to transferIOExceptionprotected void notifyObserver()
Copyright © 2003–2025 The Apache Software Foundation. All rights reserved.