org.mentawai.formatter
Class DateFormatter

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

public class DateFormatter
extends java.lang.Object
implements Formatter


Constructor Summary
DateFormatter(int style)
           
DateFormatter(java.lang.String pattern)
           
 
Method Summary
 java.lang.String format(java.lang.Object value, java.util.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(java.lang.String pattern)
Method Detail

format

public java.lang.String format(java.lang.Object value,
                               java.util.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 © 2005 Mentawai Team. All Rights Reserved.