com.monkeycoder.monkeynetwork
Class SizeConverter
java.lang.Object
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
|
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 |
magnitudeToken
public static final java.lang.String[] magnitudeToken
magnitudeValue
public static final long[] magnitudeValue
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.