public class DataUtils
extends java.lang.Object
| Constructor and Description |
|---|
DataUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
humanSize(long bytes)
Formats the provided number of bytes into a Human readable string.
|
static java.lang.String |
humanSpeed(double bytes)
Formats the provided number of bytes into a Human readable speed.
|
public static java.lang.String humanSize(long bytes)
Anything above 1024 Peta Bytes will still be displayed as Peta Bytes.
bytes - The bytes.public static java.lang.String humanSpeed(double bytes)
Anything above 1024 Peta Bytes will still be displayed as Peta Bytes.
bytes - The bytes.