public class SizeFormat
extends java.lang.Object
| Constructor and Description |
|---|
SizeFormat() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(long w)
Returns a medium version of the formatted string.
|
static SizeFormat |
getInstance() |
boolean |
isMebibyte() |
void |
setAlwaysIncludeBytes(boolean newValue) |
void |
setMaximumFractionDigits(int newValue) |
void |
setMebibyte(boolean isMebibyte) |
void |
setShortFormat(boolean newValue) |
public void setMaximumFractionDigits(int newValue)
public void setAlwaysIncludeBytes(boolean newValue)
public void setShortFormat(boolean newValue)
public void setMebibyte(boolean isMebibyte)
public boolean isMebibyte()
public java.lang.String format(long w)
w - Units in bytes.public static SizeFormat getInstance()