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
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 clientIOException
public final void transferToClient(FtpSession session, String str) throws IOException
DataConnection
transferToClient
in interface DataConnection
session
- The current FtpSession
str
- The string to transferIOException
protected void notifyObserver()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.