TML Messaging Suite  1.1.5
for Java
 All Classes Namespaces Functions Variables Groups Pages
void com.tmlsidex.jni.Tml.tml_RecStream_DownloadData ( long  coreHandle,
long  iID,
int  buffersize,
TmlJniRecStreamDldBlockHandlerIF  cbInstanceDld,
Object  pCBDataDld,
TmlJniRecStreamDldFinishHandlerIF  cbInstanceDldFinish,
Object  pCBDataFinish 
) throws TmlSidexException

start a full download of a stream

To download a full stream two handler functions are used. One to handle the data buffer by buffer and one to finish the download. Data is passed to both handlers referring to object instances or records used by the download. Depending on buffer and stream size the handlers are automatically called to handle the download. A call to this function returns after the download is finished or an error occurred.

Parameters
coreHandleTML core handle (TML_CORE_HANDLE)
iIDclear stream identification
buffersizesize of download buffer
cbInstanceDldinstance of an implementation of the callback method interface / set null for deregistration
pCBDataDldcustom data or null / buffer reception handler
cbInstanceDldFinishinstance of an implementation of the callback method interface / set null for deregistration
pCBDataFinishcustom data or null / download finished handler
Exceptions
TmlSidexException