public static String byteFormat( long bytes )
    {
        return new ByteFormat().format( bytes );
    }
A formatter for formatting byte sizes. For example, formatting 12345 byes results in
"12.1 K" and 1234567 results in "1.18 MB".

@param bytes the number of bytes
@return the number of bytes in terms of KB, MB, etc.
@see ByteFormat
xmppserver/src/main/java/org/jivesoftware/admin/JSTLFunctions.java