org.chorem.pollen.ui.utils
Class UnitConverter

java.lang.Object
  extended by org.chorem.pollen.ui.utils.UnitConverter

public class UnitConverter
extends java.lang.Object

Classe permettant de convertir des nombres.

Version:
$Id: UnitConverter.java 2680 2009-07-30 14:56:36Z nrannou $
Author:
rannou

Constructor Summary
UnitConverter()
           
 
Method Summary
static java.lang.String getFormattedFileSize(long size)
          Conversion d'une taille en octets en Ko, Mo, Go, To.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitConverter

public UnitConverter()
Method Detail

getFormattedFileSize

public static java.lang.String getFormattedFileSize(long size)
Conversion d'une taille en octets en Ko, Mo, Go, To.

Parameters:
size - taille en octets
Returns:
chaîne représentant la taille dans l'unité la plus adaptée


Copyright © 2009-2010 CodeLutin. All Rights Reserved.