|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.services.pull.util.DateFormatter
This pull tool is used to format date objects into strings.
As this is designed to be used as a gloal scope pull tool it needs to be threadsafe.
This is an application pull tool for the template system. You should not use it in a normal application.
Constructor Summary | |
DateFormatter()
|
Method Summary | |
java.lang.String |
format(java.util.Date theDate)
Formats the given date as a String using the default date format. |
java.lang.String |
format(java.util.Date theDate,
java.lang.String dateFormatString)
Formats the given date as a String. |
void |
init(java.lang.Object data)
Initialize the application tool. |
void |
refresh()
Refresh the application tool. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DateFormatter()
Method Detail |
public void init(java.lang.Object data)
init
in interface ApplicationTool
data
- initialization datapublic void refresh()
refresh
in interface ApplicationTool
public java.lang.String format(java.util.Date theDate)
theDate
- date to format
public java.lang.String format(java.util.Date theDate, java.lang.String dateFormatString)
theDate
- date to formatdateFormatString
- format string to use. See
java.text.SimpleDateFormat for details.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |