to top
AFEX APIs
public class

DataSizeUnit

extends Object
implements Parcelable
java.lang.Object
   ↳ com.ardic.android.parcelables.DataSizeUnit

Class Overview

Specify data size unit and provides byte information or human readable byte units.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
String decimalFormatToString()
Returns data size as XX,YY KB/MB/GB/TB

For example; 12,22 GB or 29,32 MB or 80,88 KB etc.

long getSizeOverBytes()
Returns number of bytes.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Methods

public String decimalFormatToString ()

Added in API level 1

Returns data size as XX,YY KB/MB/GB/TB

For example; 12,22 GB or 29,32 MB or 80,88 KB etc.

Returns
String Data size in String format

public long getSizeOverBytes ()

Added in API level 1

Returns number of bytes.

Returns
long Number of bytes