API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.text. DateFormatSymbols View Source
Author(s)
Chen-Lieh Huang
Since
Version
1.48 04/25/06
Serial
Hierarchy
 Object
      DateFormatSymbols
Implements
 Serializable
 Cloneable
Subclasses
Description
public class DateFormatSymbols
  DateFormatSymbols is a public class for encapsulating localizable date-time formatting data, such as the names of the months, the names of the days of the week, and the time zone data.
Constructors
public DateFormatSymbols ()
  Construct a DateFormatSymbols object by loading format data from resources for the default locale.
public DateFormatSymbols (Locale locale)
  Construct a DateFormatSymbols object by loading format data from resources for the given locale.
Methods
Hide/Show inherited methods
public Object clone ()
Overrides Cloneable
public boolean equals (Object obj)
Override equals
public String getAmPmStrings ()
  Gets ampm strings.
publicstatic Locale getAvailableLocales ()
  Returns an array of all locales for which the getInstance methods of this class can return localized instances.
public String getEras ()
  Gets era strings.
publicfinalstatic DateFormatSymbols getInstance ()
  Gets the DateFormatSymbols instance for the default locale.
publicfinalstatic DateFormatSymbols getInstance (Locale locale)
  Gets the DateFormatSymbols instance for the specified locale.
public String getLocalPatternChars ()
  Gets localized date-time pattern characters.
public String getMonths ()
  Gets month strings.
public String getShortMonths ()
  Gets short month strings.
public String getShortWeekdays ()
  Gets short weekday strings.
public String getWeekdays ()
  Gets weekday strings.
pack-privatefinal int getZoneIndex (String ID)
  Package private: used by SimpleDateFormat Gets the index for the given time zone ID to obtain the time zone strings for formatting.
public String getZoneStrings ()
  Gets time zone strings.
pack-privatefinal String getZoneStringsWrapper ()
Wrapper method to the getZoneStrings(), which is called from inside the java.text package and not to mutate the returned arrays, so that it does not need to create a defensive copy.
public int hashCode ()
  Override hashCode.
public void setAmPmStrings (String newAmpms)
  Sets ampm strings.
public void setEras (String newEras)
  Sets era strings.
public void setLocalPatternChars (String newLocalPatternChars)
  Sets localized date-time pattern characters.
public void setMonths (String newMonths)
  Sets month strings.
public void setShortMonths (String newShortMonths)
  Sets short month strings.
public void setShortWeekdays (String newShortWeekdays)
  Sets short weekday strings.
public void setWeekdays (String newWeekdays)
  Sets weekday strings.
public void setZoneStrings (String newZoneStrings)
  Sets time zone strings.
Fields
Hide/Show inherited fields
pack-private String ampms
  AM and PM strings.
pack-private String eras
  Era strings.
pack-privatetransient boolean isZoneStringsSet
Indicates that zoneStrings is set externally with setZoneStrings() method.
pack-private Locale locale
  The locale which is used for initializing this DateFormatSymbols object.
pack-private String localPatternChars
  Localized date-time pattern characters.
pack-privatefinalstatic int millisPerHour = "3600000"
Useful constant for defining time zone offsets.
pack-private String months
  Month strings.
pack-privatefinalstatic String patternChars = "GyMdkHmsSEDFwWahKzZ"
  Unlocalized date-time pattern characters.
pack-privatefinalstatic long serialVersionUID = "-5987973545549424702"
pack-private String shortMonths
  Short month strings.
pack-private String shortWeekdays
  Short weekday strings.
pack-private String weekdays
  Weekday strings.
pack-private String zoneStrings
  Localized names of time zones in this locale.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar