Package com.cbe.delegate
Class DownloadDelegate
java.lang.Object
com.cbe.delegate.DownloadDelegate
Delegate class for the asynchronous version of method:
- cbe::Object::download(const std::string&, DownloadDelegatePtr)
- cbe::Object::downloadStream(const std::string&,cbe::Stream,DownloadDelegatePtr)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()voidfinalize()static longgetCPtr(DownloadDelegate obj) voidonChunkReceived(Object object, long received, long total) Called when a chunk of data has been received.voidonDownloadError(TransferError transferError, Context context) Called if an error is encountered.voidonDownloadSuccess(Object object, String path) Called upon successful Download.voidvoidvoidswigSetCMemOwn(boolean own) void
-
Constructor Details
-
DownloadDelegate
public DownloadDelegate(long cPtr, boolean cMemoryOwn) -
DownloadDelegate
public DownloadDelegate()
-
-
Method Details
-
getCPtr
-
swigSetCMemOwn
public void swigSetCMemOwn(boolean own) -
finalize
public void finalize() -
delete
public void delete() -
swigDirectorDisconnect
public void swigDirectorDisconnect() -
swigReleaseOwnership
public void swigReleaseOwnership() -
swigTakeOwnership
public void swigTakeOwnership() -
onDownloadSuccess
Called upon successful Download.- Parameters:
object- Instance of object that is being Downloaded.path- Path of object to be downloaded.
-
onDownloadError
Called if an error is encountered. -
onChunkReceived
Called when a chunk of data has been received.- Parameters:
object- Object associated with current
download.received- Size, in number of bytes, of the received chunk.total- Total number of bytes received so far.
-