com.monkeycoder.monkeynetwork
Class SizeConverter

java.lang.Object
  extended by com.monkeycoder.monkeynetwork.SizeConverter

public class SizeConverter
extends java.lang.Object

Converts raw numbers of bytes into properly formatted numbers of kilobytes, megabytes, gigabytes, or terabytes.

Author:
David Stephens

Field Summary
static java.lang.String[] magnitudeToken
           
static long[] magnitudeValue
           
 
Method Summary
static java.lang.String getConvertedValue(long inBytes)
          Returns a String containing the converted value with the appropriate unit appended.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

magnitudeToken

public static final java.lang.String[] magnitudeToken

magnitudeValue

public static final long[] magnitudeValue
Method Detail

getConvertedValue

public static java.lang.String getConvertedValue(long inBytes)
Returns a String containing the converted value with the appropriate unit appended.

Parameters:
inBytes - The number of bytes to convert.
Returns:
A String containing the converted value.