public final class

OfflineODataFileDownloadProgress

extends Object
java.lang.Object
   ↳ com.sap.cloud.mobile.odata.offline.OfflineODataFileDownloadProgress

Class Overview

The class represents the progress information during a download of file.

Summary

Public Constructors
OfflineODataFileDownloadProgress(long bytesReceived, long fileSize)
Constructs an OfflineODataFileDownloadProgress instance.
Public Methods
long getBytesReceived()
Returns the number of bytes received from server.
long getFileSize()
Returns the total size of the file in bytes.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OfflineODataFileDownloadProgress (long bytesReceived, long fileSize)

Constructs an OfflineODataFileDownloadProgress instance.

Parameters
bytesReceived the number of bytes received from server.
fileSize the total size of the file in bytes.

Public Methods

public long getBytesReceived ()

Returns the number of bytes received from server.

Returns
  • the number of bytes received from server.

public long getFileSize ()

Returns the total size of the file in bytes.

Returns
  • the total size of the file in bytes.