java.lang.Object | |
↳ | com.atlassian.core.util.FileSize |
A class that contains utility methods for formatting the size of files into human readable form.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convenience method.
| |||||||||||
Format the size of a file in human readable form.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Convenience method. Calls format(long filesize).
filesize | The size of the file in bytes. |
---|
Format the size of a file in human readable form. Anything less than a kilobyte is presented in kilobytes to one decimal place. Anything between a kilobyte and a megabyte is presented in kilobytes to zero decimal places. Anything greater than one megabyte is presented in megabytes to two decimal places.
eg.
filesize | The size of the file in bytes. |
---|