com.ghasemkiani.util.icu
Class PersianDateFormat

java.lang.Object
  extended byjava.text.Format
      extended bycom.ibm.icu.text.UFormat
          extended bycom.ibm.icu.text.DateFormat
              extended bycom.ibm.icu.text.SimpleDateFormat
                  extended bycom.ghasemkiani.util.icu.PersianDateFormat
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class PersianDateFormat
extends com.ibm.icu.text.SimpleDateFormat

This class is used for formatting dates in the Persian calendar system. It uses the PersianDateFormatSymbols class for localized names of Persian calendar eras and months.

Version:
2.1
Author:
Ghasem Kiani
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.text.Format
java.text.Format.Field
 
Field Summary
 
Fields inherited from class com.ibm.icu.text.DateFormat
AM_PM_FIELD, DATE_FIELD, DAY_OF_WEEK_FIELD, DAY_OF_WEEK_IN_MONTH_FIELD, DAY_OF_YEAR_FIELD, DEFAULT, DOW_LOCAL_FIELD, ERA_FIELD, EXTENDED_YEAR_FIELD, FIELD_COUNT, FRACTIONAL_SECOND_FIELD, FULL, HOUR_OF_DAY0_FIELD, HOUR_OF_DAY1_FIELD, HOUR0_FIELD, HOUR1_FIELD, JULIAN_DAY_FIELD, LONG, MEDIUM, MILLISECOND_FIELD, MILLISECONDS_IN_DAY_FIELD, MINUTE_FIELD, MONTH_FIELD, SECOND_FIELD, SHORT, TIMEZONE_FIELD, TIMEZONE_RFC_FIELD, WEEK_OF_MONTH_FIELD, WEEK_OF_YEAR_FIELD, YEAR_FIELD, YEAR_WOY_FIELD
 
Constructor Summary
PersianDateFormat()
          Creates a PersianDateFormat with the default pattern and locale.
PersianDateFormat(java.lang.String pattern)
          Creates a PersianDateFormat with the specified pattern and the default locale.
PersianDateFormat(java.lang.String pattern, java.util.Locale loc)
          Creates a PersianDateFormat with the specified pattern and locale.
PersianDateFormat(java.lang.String pattern, com.ibm.icu.util.ULocale loc)
          Creates a PersianDateFormat with the specified pattern and locale.
 
Method Summary
 
Methods inherited from class com.ibm.icu.text.SimpleDateFormat
applyLocalizedPattern, applyPattern, clone, equals, format, get2DigitYearStart, getDateFormatSymbols, hashCode, parse, set2DigitYearStart, setDateFormatSymbols, toLocalizedPattern, toPattern
 
Methods inherited from class com.ibm.icu.text.DateFormat
format, format, format, getAvailableLocales, getAvailableULocales, getCalendar, getDateInstance, getDateInstance, getDateInstance, getDateInstance, getDateInstance, getDateInstance, getDateInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getDateTimeInstance, getInstance, getInstance, getInstance, getInstance, getNumberFormat, getTimeInstance, getTimeInstance, getTimeInstance, getTimeInstance, getTimeInstance, getTimeInstance, getTimeInstance, getTimeZone, isLenient, parse, parse, parseObject, setCalendar, setLenient, setNumberFormat, setTimeZone
 
Methods inherited from class com.ibm.icu.text.UFormat
getLocale
 
Methods inherited from class java.text.Format
format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersianDateFormat

public PersianDateFormat()
Creates a PersianDateFormat with the default pattern and locale.


PersianDateFormat

public PersianDateFormat(java.lang.String pattern)
Creates a PersianDateFormat with the specified pattern and the default locale.

Parameters:
pattern - the pattern to be used by this object.

PersianDateFormat

public PersianDateFormat(java.lang.String pattern,
                         java.util.Locale loc)
Creates a PersianDateFormat with the specified pattern and locale.

Parameters:
pattern - the pattern to be used by this object.
loc - the provided locale for this object.

PersianDateFormat

public PersianDateFormat(java.lang.String pattern,
                         com.ibm.icu.util.ULocale loc)
Creates a PersianDateFormat with the specified pattern and locale.

Parameters:
pattern - the pattern to be used by this object.
loc - the provided locale for this object.