Provides a mechanism to transfer files between the client and a MobiLink server.
public interface FileTransfer
All members of FileTransfer interface, including all inherited members.
Name | Description |
---|---|
Downloads the file with the specified properties of this object. | |
Returns parameters provided to a custom user authentication script. | |
Returns the authorization status code of the last file transfer attempt. | |
Returns the value specified in custom user authentication synchronization scripts. | |
Returns the return value from the authenticate_file_transfer script for the last file transfer attempt. | |
Returns the liveness timeout length, in seconds. | |
Determines the local file name. | |
Specifies where to find or store the file in the local file system. | |
Returns the MobiLink password for the user specified with the setUserName method. | |
Determines the current remote key value. | |
Returns the name of the file on the server. | |
Returns the error code reported by the stream. | |
Returns the error message reported by the stream itself. | |
Returns the parameters used to configure the synchronization stream. | |
Returns the MobiLink user name that uniquely identifies the client to the MobiLink server. | |
Returns the synchronization script to use. | |
Determines whether to resume or discard a previous partial transfer. | |
Checks whether the file was actually downloaded during the last file transfer attempt. | |
Specifies parameters for a custom user authentication script (MobiLink authenticate_parameters connection event). | |
Sets the liveness timeout length, in seconds. | |
Specifies the local file name. | |
Specifies where to find or store the file in the local file system. | |
Sets the MobiLink password for the user specified with the setUserName method. | |
Specifies the remote key. | |
Specifies whether to resume or discard a previous partial transfer. | |
Specifies the name of the file on the server. | |
Sets the MobiLink user name that uniquely identifies the client to the MobiLink server. | |
Sets the synchronization script to use. | |
Uploads the file with the specified properties of this object. |
A FileTransfer object is obtained by calling the DatabaseManager.createFileTransfer or DatabaseManager.createObjectStoreTransfer [BlackBerry] methods.
The instance returned by the createFileTransfer method can be used to transfer any files between MobiLink and the local file system.
For the BlackBerry devices and simulators, the local file system is either a media card or internal flash file system (if available on the device). For file name restrictions, see the description of the DatabaseManager.createConfigurationFileME method.
For Android devices and simulators, the local file system is either a media card or the internal file system where the application has appropriate permissions. Eg. /sdcard/Android/data/your.package.name/files/
The instance returned by the createObjectStoreTransfer method can be used to download UltraLite Java edition database files to the local BlackBerry object store, or vice versa.
Only valid, unencrypted UltraLite Java edition database files can be transferred. Attempting to download any files other than UltraLite Java edition databases result in exceptions being thrown.
The application should not simultaneously start two downloads to the same local file.
downloadFile method
getAuthenticationParms method
getAuthStatus method
getAuthValue method
getFileAuthCode method
getLivenessTimeout method
getLocalFileName method
getLocalPath method
getPassword method
getRemoteKey method
getServerFileName method
getStreamErrorCode method
getStreamErrorMessage method
getStreamParms method
getUserName method
getVersion method
isResumePartialTransfer method
isTransferredFile method
setAuthenticationParms method
setLivenessTimeout method
setLocalFileName method
setLocalPath method
setPassword method
setRemoteKey method
setResumePartialTransfer method
setServerFileName method
setUserName method
setVersion method
uploadFile method
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |