org.mentawai.formatter
Class DateFormatter

java.lang.Object
  extended by org.mentawai.formatter.DateFormatter
All Implemented Interfaces:
Formatter

public class DateFormatter
extends Object
implements Formatter


Constructor Summary
DateFormatter(int style)
           
DateFormatter(String pattern)
           
 
Method Summary
 String format(Object value, Locale loc)
          Formats an output object from this action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFormatter

public DateFormatter(int style)

DateFormatter

public DateFormatter(String pattern)
Method Detail

format

public String format(Object value,
                     Locale loc)
Description copied from interface: Formatter
Formats an output object from this action.

Specified by:
format in interface Formatter
Parameters:
value - The value to format
loc - The locale to use (if needed)
Returns:
The value formatted to a String


Copyright © 2013. All Rights Reserved.