to.etc.domui.converter
Class LongSizeConverter

java.lang.Object
  extended by to.etc.domui.converter.LongSizeConverter
All Implemented Interfaces:
IConverter<java.lang.Long>, IObjectToStringConverter<java.lang.Long>, IStringToObjectConverter<java.lang.Long>

public class LongSizeConverter
extends java.lang.Object
implements IConverter<java.lang.Long>

Converter to convert a computer "size" to a size in bytes, KB, MB, GB etc.

Author:
Frits Jalvingh Created on Jul 30, 2009

Constructor Summary
LongSizeConverter()
           
 
Method Summary
 java.lang.String convertObjectToString(java.util.Locale loc, java.lang.Long in)
           
 java.lang.Long convertStringToObject(java.util.Locale loc, java.lang.String val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongSizeConverter

public LongSizeConverter()
Method Detail

convertObjectToString

public java.lang.String convertObjectToString(java.util.Locale loc,
                                              java.lang.Long in)
                                       throws UIException
Specified by:
convertObjectToString in interface IObjectToStringConverter<java.lang.Long>
Throws:
UIException

convertStringToObject

public java.lang.Long convertStringToObject(java.util.Locale loc,
                                            java.lang.String val)
                                     throws UIException
Specified by:
convertStringToObject in interface IStringToObjectConverter<java.lang.Long>
Throws:
UIException