|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.metasyntactic.io.FileSizeFormat
Simple formatting mechanism for files that produces file size string identical to Windows®.
Method Summary | |
static java.lang.String |
format(java.io.File file)
Returns a string representing the size of this file. |
static java.lang.String |
format(long bytes)
Returns a string representing this number |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String format(java.io.File file)
file
- The file to get the size from
public static java.lang.String format(long bytes)
bytes
- The number to get the size from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |