| java.lang.Object java.text.Format org.jivesoftware.util.ByteFormat
ByteFormat | public class ByteFormat extends Format (Code) | | A formatter for formatting byte sizes. For example, formatting 12345 byes results in
"12.1 K" and 1234567 results in "1.18 MB".
author: Bill Lynch |
format | public String format(long bytes)(Code) | | Formats a long which represent a number of bytes.
|
format | public StringBuffer format(Object obj, StringBuffer buf, FieldPosition pos)(Code) | | Format the given object (must be a Long).
Parameters: obj - assumed to be the number of bytes as a Long. Parameters: buf - the StringBuffer to append to. Parameters: pos - A formatted string representing the given bytes in more human-readable form. |
formatKB | public String formatKB(long kilobytes)(Code) | | Formats a long which represent a number of kilobytes.
|
parseObject | public Object parseObject(String source, ParsePosition pos)(Code) | | In this implementation, returns null always.
Parameters: source - Parameters: pos - returns null in this implementation. |
|
|