org.rythmengine.extension
Class JodaDateTimeFormatter

java.lang.Object
  extended by org.rythmengine.extension.JodaDateTimeFormatter
All Implemented Interfaces:
IFormatter

public class JodaDateTimeFormatter
extends Object
implements IFormatter

Created by luog on 2/01/14.


Constructor Summary
JodaDateTimeFormatter()
           
 
Method Summary
 String format(Object val, String pattern, Locale locale, String timezone)
          Try to format the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JodaDateTimeFormatter

public JodaDateTimeFormatter()
Method Detail

format

public String format(Object val,
                     String pattern,
                     Locale locale,
                     String timezone)
Description copied from interface: IFormatter
Try to format the object. If the formatter does not recongize the object, then null shall be returned immediately

Specified by:
format in interface IFormatter
Parameters:
val - the value object to be formatted
pattern - the pattern to format the object
locale - current locale
timezone - current timezone
Returns:
the formatted string from the value


Copyright © 2014. All Rights Reserved.