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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
void
finalize()
static long
getCPtr
(DownloadDelegate obj) void
onChunkReceived
(Object object, long received, long total) Called when a chunk of data has been received.void
onDownloadError
(TransferError transferError, Context context) Called if an error is encountered.void
onDownloadSuccess
(Object object, String path) Called upon successful Download.void
void
void
swigSetCMemOwn
(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.
-