public class FileSizeFormat
extends java.lang.Object
| Constructor and Description |
|---|
FileSizeFormat() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(long w)
Returns a medium version of the formatted string.
|
java.lang.String |
formatLong(long w)
Returns a long version of the formatted string.
|
java.lang.String |
formatShort(long w)
Returns a short version of the formatted string.
|
static FileSizeFormat |
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 java.lang.String formatLong(long w)
w - Units in bytes.public java.lang.String formatShort(long w)
w - Units in bytes.public static FileSizeFormat getInstance()