public interface WaarpFtpClientInterface
Modifier and Type | Field and Description |
---|---|
static String |
CANNOT_EXECUTE_OPERATION_FEATURE |
static String |
CANNOT_EXECUTE_OPERATION_SITE |
static String |
CANNOT_FINALIZE_RETRIEVE_LIKE_OPERATION |
static String |
CANNOT_FINALIZE_STORE_LIKE_OPERATION |
static String |
CANNOT_FINALIZE_TRANSFER_OPERATION |
static String |
CHDIR_IN_ERROR |
static String |
CONNECTION_IN_ERROR |
static String |
DISCONNECTION_IN_ERROR |
static String |
FILE_TYPE_IN_ERROR |
static String |
LOGIN_IN_ERROR |
static String |
MKDIR_IN_ERROR |
static String |
NOOP_ERROR |
static String |
SET_BINARY_IN_ERROR |
Modifier and Type | Method and Description |
---|---|
boolean |
append(InputStream local,
String remote)
Store File as Append
|
boolean |
append(String local,
String remote)
Store File as Append
|
boolean |
changeDir(String newDir)
Change remote directory
|
boolean |
changeFileType(boolean binaryTransfer)
Change the FileType of Transfer (Binary true, ASCII false)
|
void |
changeMode(boolean passive)
Change to passive (true) or active (false) mode
|
void |
compressionMode(boolean compression)
Change to ZLIB compression (true) or inactive (false) mode.
|
boolean |
connect()
Try to connect to the server and goes with the authentication
|
boolean |
deleteFile(String remote) |
void |
disconnect()
Disconnect the Ftp Client
|
String[] |
executeCommand(String params) |
String[] |
executeSiteCommand(String params) |
boolean |
featureEnabled(String feature) |
String[] |
features() |
String |
getResult() |
String[] |
listFiles() |
String[] |
listFiles(String remote) |
void |
logout()
QUIT the control connection
|
boolean |
makeDir(String newDir)
Create a new directory
|
String[] |
mlistFiles() |
String[] |
mlistFiles(String remote) |
void |
noop()
Sends a No Op command
|
boolean |
retrieve(OutputStream local,
String remote)
Retrieve File
|
boolean |
retrieve(String local,
String remote)
Retrieve File
|
void |
setActiveDataTransferPortRange(int from,
int to) |
void |
setReportActiveExternalIPAddress(String ipAddress) |
boolean |
store(InputStream local,
String remote)
Store File
|
boolean |
store(String local,
String remote)
Store File
|
boolean |
transferFile(InputStream local,
String remote,
int getStoreOrAppend)
Ask to transfer a file as STORE or APPEND
|
boolean |
transferFile(OutputStream local,
String remote)
Ask to transfer a file as GET
|
boolean |
transferFile(String local,
String remote,
int getStoreOrAppend)
Ask to transfer a file
|
static final String CANNOT_EXECUTE_OPERATION_SITE
static final String CANNOT_EXECUTE_OPERATION_FEATURE
static final String CANNOT_FINALIZE_TRANSFER_OPERATION
static final String CHDIR_IN_ERROR
static final String MKDIR_IN_ERROR
static final String DISCONNECTION_IN_ERROR
static final String LOGIN_IN_ERROR
static final String CONNECTION_IN_ERROR
static final String SET_BINARY_IN_ERROR
static final String CANNOT_FINALIZE_STORE_LIKE_OPERATION
static final String CANNOT_FINALIZE_RETRIEVE_LIKE_OPERATION
static final String FILE_TYPE_IN_ERROR
static final String NOOP_ERROR
void setReportActiveExternalIPAddress(String ipAddress)
ipAddress
- the external IP address to report in EPRT/PORT commands
in active mode.void setActiveDataTransferPortRange(int from, int to)
from
- the first port to usedto
- the last port to usedString getResult()
boolean connect()
void logout()
void disconnect()
boolean makeDir(String newDir)
newDir
- boolean changeDir(String newDir)
newDir
- boolean changeFileType(boolean binaryTransfer)
binaryTransfer
- void changeMode(boolean passive)
passive
- void compressionMode(boolean compression)
compression
- boolean store(String local, String remote)
local
- local filepath (full path)remote
- filename (basename)boolean store(InputStream local, String remote)
local
- local InputStreamremote
- filename (basename)boolean append(String local, String remote)
local
- local filepath (full path)remote
- filename (basename)boolean append(InputStream local, String remote)
local
- local InputStreamremote
- filename (basename)boolean retrieve(String local, String remote)
local
- local filepath (full path)remote
- filename (basename)boolean retrieve(OutputStream local, String remote)
local
- local OutputStreamremote
- filename (basename)boolean transferFile(String local, String remote, int getStoreOrAppend)
local
- local filepath (full path)remote
- filename (basename)getStoreOrAppend
- -1 = get, 1 = store, 2 = appendboolean transferFile(InputStream local, String remote, int getStoreOrAppend)
local
- local outputStreamremote
- filename (basename)getStoreOrAppend
- 1 = store, 2 = appendboolean transferFile(OutputStream local, String remote)
local
- local outputStream (or NullStream)remote
- filename (basename)String[] listFiles(String remote)
remote
- remote file specString[] listFiles()
String[] mlistFiles(String remote)
remote
- remote file specString[] mlistFiles()
String[] features()
boolean featureEnabled(String feature)
feature
- boolean deleteFile(String remote)
remote
- String[] executeCommand(String params)
params
- String[] executeSiteCommand(String params)
params
- command without SITE in frontvoid noop()
Copyright © 2009–2022 Waarp. All rights reserved.