org.loom.i18n
Class FileSizeFormatter

java.lang.Object
  extended by org.loom.i18n.FileSizeFormatter

public class FileSizeFormatter
extends java.lang.Object

A class capable of formatting a file size in a human readable format


Constructor Summary
FileSizeFormatter()
           
 
Method Summary
 java.lang.String format(java.lang.Number value)
           
 void setMessagesRepository(MessagesRepository messagesRepository)
           
 void setPrecision(int precision)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSizeFormatter

public FileSizeFormatter()
Method Detail

format

public java.lang.String format(java.lang.Number value)
Returns:
the formatted value

setPrecision

public void setPrecision(int precision)

setMessagesRepository

public void setMessagesRepository(MessagesRepository messagesRepository)