org.scohen.juploadr.util
Class ConversionUtils

java.lang.Object
  extended byorg.scohen.juploadr.util.ConversionUtils

public class ConversionUtils
extends java.lang.Object

Utility classes for conversions

Author:
steve

Constructor Summary
ConversionUtils()
           
 
Method Summary
static java.lang.String bytesToHumanReadable(long bytes)
          Converts bytes to a more human readable format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversionUtils

public ConversionUtils()
Method Detail

bytesToHumanReadable

public static java.lang.String bytesToHumanReadable(long bytes)
Converts bytes to a more human readable format. 1024 bytes = 1 K 1024 K = one Meg 1024 Megs = 1 Gigabye

Parameters:
bytes - The number of bytes
Returns:
a String with a more human readable format