| java.text.NumberFormat clime.messadmin.utils.BytesFormat
BytesFormat | public class BytesFormat extends NumberFormat (Code) | | Formats a number of bytes, adding a suffix
author: Cédrik LIME |
DEFAULT_FRACTIONS_DIGITS | final protected static int DEFAULT_FRACTIONS_DIGITS(Code) | | |
GB | final protected static double GB(Code) | | |
KB | final protected static double KB(Code) | | |
MB | final protected static double MB(Code) | | |
TB | final protected static double TB(Code) | | |
bytesToHumanString | protected void bytesToHumanString(long bytes, int fractionsDigits, StringBuffer toAppendTo)(Code) | | Smart formatter for bytes
Parameters: bytes - Parameters: toAppendTo - buffer where to put the formated, human-readable String |
|
|