org.jopendocument.dom.template.engine
Class DataFormatter
java.lang.Object
org.jopendocument.dom.template.engine.DataFormatter
public class DataFormatter
- extends Object
Contains utility methods to format dates and numbers.
An instance of this class is automatically available for use in template expressions as
#fmt.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static DataFormatter getInstance()
formatDate
public String formatDate(Date date,
String pattern)
formatNumber
public String formatNumber(Number number,
String pattern)
Copyright © 2010 jOpenDocument All Rights Reserved.