org.jopendocument.dom.template.engine
Class DataFormatter

java.lang.Object
  extended by 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.


Method Summary
 String formatDate(Date date, String pattern)
           
 String formatNumber(Number number, String pattern)
           
static DataFormatter getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.