com.acsinet_solutions.util.text
Class DateFormatterBundle.EnglishDateFormatter

java.lang.Object
  extended by com.acsinet_solutions.util.text.DateFormatterBundle.EnglishDateFormatter
All Implemented Interfaces:
DateFormatter
Enclosing class:
DateFormatterBundle

public static final class DateFormatterBundle.EnglishDateFormatter
extends java.lang.Object

Date formatter for english locales


Constructor Summary
DateFormatterBundle.EnglishDateFormatter()
           
 
Method Summary
protected  void fillDateRange(java.lang.StringBuilder builder, int startDay, int startMonth, int startYear, int endDay, int endMonth, int endYear)
          Fill the provided buffer with the date range
 java.lang.String getDateRange(java.util.Calendar startDate, java.util.Calendar endDate)
          Get the date range of the given dates ( stored as Calendar instances ) as a convenient String
 java.lang.String getMonthName(int i)
          Get the month's name in the current locale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFormatterBundle.EnglishDateFormatter

public DateFormatterBundle.EnglishDateFormatter()
Method Detail

fillDateRange

protected final void fillDateRange(java.lang.StringBuilder builder,
                                   int startDay,
                                   int startMonth,
                                   int startYear,
                                   int endDay,
                                   int endMonth,
                                   int endYear)
Fill the provided buffer with the date range

See Also:
com.acsinet_solutions.util.AbstractDateFormatter#fillDateRange(StringBuilder, int, int, int, int, int, int)

getMonthName

public final java.lang.String getMonthName(int i)
Description copied from interface: DateFormatter
Get the month's name in the current locale

Specified by:
getMonthName in interface DateFormatter
Parameters:
i - the month's index from 1 to 12
See Also:
com.acsinet_solutions.util.DateFormatter#getMonthName(int)

getDateRange

public final java.lang.String getDateRange(java.util.Calendar startDate,
                                           java.util.Calendar endDate)
Description copied from interface: DateFormatter
Get the date range of the given dates ( stored as Calendar instances ) as a convenient String

Specified by:
getDateRange in interface DateFormatter
See Also:
com.acsinet_solutions.util.DateFormatter#getDateRange(Calendar, Calendar)