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 setUserName. | |
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 setUserName. | |
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 createFileTransfer() or createObjectStoreTransfer() (BlackBerry only) methods of the DatabaseManager class.
The instance returned by createFileTransfer() can be used to transfer any files between MobiLink and the local file system. For the BlackBerry 4.2 and later 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 createConfigurationFileME method on the DatabaseManager class.
The instance returned by createObjectStoreTransfer() can be used to download UltraLiteJ database files to the local BlackBerry object store, or vice versa. Only valid, unencrypted UltraLiteJ database files could be transferred. Attempting to download any files other than UltraLiteJ databases will result in exceptions being thrown.
Note that the application should not simutaneously 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 © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |