public class FtpDataTransiverImpl extends Object implements FtpDataTransiver
| Modifier and Type | Class and Description |
|---|---|
protected class |
FtpDataTransiverImpl.ActiveThread |
protected class |
FtpDataTransiverImpl.PassiveThread |
| Modifier and Type | Field and Description |
|---|---|
protected Thread |
connectionThread |
protected Socket |
dataSocket |
| Constructor and Description |
|---|
FtpDataTransiverImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isConnected() |
boolean |
OpenActive(int port) |
void |
OpenPassive(String host,
int port) |
byte[] |
receive() |
boolean |
send(byte[] data) |
protected Socket dataSocket
protected Thread connectionThread
public void OpenPassive(String host, int port)
OpenPassive in interface FtpDataTransiverpublic boolean OpenActive(int port)
OpenActive in interface FtpDataTransiverpublic boolean isConnected()
isConnected in interface FtpDataTransiverpublic void close()
close in interface FtpDataTransiverpublic byte[] receive()
receive in interface FtpDataTransiverpublic boolean send(byte[] data)
send in interface FtpDataTransiverCopyright © 2003–2021 eXo Platform SAS. All rights reserved.