Package de.xima.fc.gui.common.converter
Class FileSizeConverter
java.lang.Object
de.xima.fc.gui.common.converter.FileSizeConverter
- All Implemented Interfaces:
Serializable
,javax.faces.convert.Converter<Object>
public class FileSizeConverter
extends Object
implements javax.faces.convert.Converter<Object>, Serializable
Converter between a file size in bytes and a human readable representation, such as
5.3 MB
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
Fields inherited from interface javax.faces.convert.Converter
DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAsObject
(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value) getAsString
(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
-
Constructor Details
-
FileSizeConverter
public FileSizeConverter()
-
-
Method Details
-
getAsObject
public Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value) - Specified by:
getAsObject
in interfacejavax.faces.convert.Converter<Object>
-
getAsString
public String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value) - Specified by:
getAsString
in interfacejavax.faces.convert.Converter<Object>
-