Class FtpDataTransiverImpl
- java.lang.Object
-
- org.exoplatform.frameworks.ftpclient.data.FtpDataTransiverImpl
-
- All Implemented Interfaces:
FtpDataTransiver
public class FtpDataTransiverImpl extends Object implements FtpDataTransiver
Created by The eXo Platform SAS .- Version:
- $Id: $
- Author:
- Vitaly Guly
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classFtpDataTransiverImpl.ActiveThreadprotected classFtpDataTransiverImpl.PassiveThread
-
Field Summary
Fields Modifier and Type Field Description protected ThreadconnectionThreadprotected SocketdataSocket
-
Constructor Summary
Constructors Constructor Description FtpDataTransiverImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisConnected()booleanOpenActive(int port)voidOpenPassive(String host, int port)byte[]receive()booleansend(byte[] data)
-
-
-
Method Detail
-
OpenPassive
public void OpenPassive(String host, int port)
- Specified by:
OpenPassivein interfaceFtpDataTransiver
-
OpenActive
public boolean OpenActive(int port)
- Specified by:
OpenActivein interfaceFtpDataTransiver
-
isConnected
public boolean isConnected()
- Specified by:
isConnectedin interfaceFtpDataTransiver
-
close
public void close()
- Specified by:
closein interfaceFtpDataTransiver
-
receive
public byte[] receive()
- Specified by:
receivein interfaceFtpDataTransiver
-
send
public boolean send(byte[] data)
- Specified by:
sendin interfaceFtpDataTransiver
-
-