public class SizeFormat
extends java.lang.Object
Convert data sizes to human-readable strings. Used by all commands that output sizes, so the output always looks the same.
Code has been adapted from https://stackoverflow.com/questions/3263892/format-file-size-as-mb-gb-etc and corrected in a way that it displays correct SI units.
| Constructor and Description |
|---|
SizeFormat() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(long size)
Convert the given data size to a human-readable string
|