railo.commons.i18n
Class FormatUtil

java.lang.Object
  extended by railo.commons.i18n.FormatUtil

public class FormatUtil
extends Object


Field Summary
static short FORMAT_TYPE_DATE
           
static short FORMAT_TYPE_DATE_ALL
           
static short FORMAT_TYPE_DATE_TIME
           
static short FORMAT_TYPE_TIME
           
 
Constructor Summary
FormatUtil()
           
 
Method Summary
static DateFormat[] getCFMLFormats(TimeZone tz, boolean lenient)
          CFML Supported LS Formats
static DateFormat[] getDateFormats(Locale locale, TimeZone tz, boolean lenient)
           
static DateFormat[] getDateTimeFormats(Locale locale, TimeZone tz, boolean lenient)
           
static DateFormat[] getFormats(Locale locale, TimeZone tz, boolean lenient, short formatType)
           
static String[] getSupportedPatterns(Locale locale, short formatType)
           
static DateFormat[] getTimeFormats(Locale locale, TimeZone tz, boolean lenient)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORMAT_TYPE_DATE

public static final short FORMAT_TYPE_DATE
See Also:
Constant Field Values

FORMAT_TYPE_TIME

public static final short FORMAT_TYPE_TIME
See Also:
Constant Field Values

FORMAT_TYPE_DATE_TIME

public static final short FORMAT_TYPE_DATE_TIME
See Also:
Constant Field Values

FORMAT_TYPE_DATE_ALL

public static final short FORMAT_TYPE_DATE_ALL
See Also:
Constant Field Values
Constructor Detail

FormatUtil

public FormatUtil()
Method Detail

getDateTimeFormats

public static DateFormat[] getDateTimeFormats(Locale locale,
                                              TimeZone tz,
                                              boolean lenient)

getDateFormats

public static DateFormat[] getDateFormats(Locale locale,
                                          TimeZone tz,
                                          boolean lenient)

getTimeFormats

public static DateFormat[] getTimeFormats(Locale locale,
                                          TimeZone tz,
                                          boolean lenient)

getCFMLFormats

public static DateFormat[] getCFMLFormats(TimeZone tz,
                                          boolean lenient)
CFML Supported LS Formats

Parameters:
locale -
tz -
lenient -
Returns:

getFormats

public static DateFormat[] getFormats(Locale locale,
                                      TimeZone tz,
                                      boolean lenient,
                                      short formatType)

getSupportedPatterns

public static String[] getSupportedPatterns(Locale locale,
                                            short formatType)


Copyright © 2012 Railo