at.newmedialab.ldpath.template.util
Class FormatUtil

java.lang.Object
  extended by at.newmedialab.ldpath.template.util.FormatUtil

public class FormatUtil
extends Object

A utility class for formatting Java values when writing out the templating results. The methods are implemented to copy the formatting behaviour of FreeMarker

Author: Sebastian Schaffert


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

Constructor Detail

FormatUtil

public FormatUtil()
Method Detail

formatNumber

public static String formatNumber(Number number)

formatDate

public static String formatDate(Date date)

formatTime

public static String formatTime(Date date)

formatDateTime

public static String formatDateTime(Date date)


Copyright © 2012 Salzburg Research. All Rights Reserved.