Team LiB
Previous Section Next Section

DateFormatSymbolsjava.text

Java 1.1cloneable serializable

This class defines accessor methods for the various pieces of data, such as names of months and days, used by SimpleDateFormat to format and parse dates and times. You do not typically need to use this class unless you are formatting dates for an unsupported locale or in some highly customized way.

Figure 15-8. java.text.DateFormatSymbols


public class DateFormatSymbols implements Cloneable, Serializable {
// Public Constructors
     public DateFormatSymbols( );  
     public DateFormatSymbols(java.util.Locale locale);  
// Public Instance Methods
     public String[ ] getAmPmStrings( );  
     public String[ ] getEras( );  
     public String getLocalPatternChars( );  
     public String[ ] getMonths( );  
     public String[ ] getShortMonths( );  
     public String[ ] getShortWeekdays( );  
     public String[ ] getWeekdays( );  
     public String[ ][ ] getZoneStrings( );  
     public void setAmPmStrings(String[ ] newAmpms);  
     public void setEras(String[ ] newEras);  
     public void setLocalPatternChars(String newLocalPatternChars);  
     public void setMonths(String[ ] newMonths);  
     public void setShortMonths(String[ ] newShortMonths);  
     public void setShortWeekdays(String[ ] newShortWeekdays);  
     public void setWeekdays(String[ ] newWeekdays);  
     public void setZoneStrings(String[ ][ ] newZoneStrings);  
// Public Methods Overriding Object
     public Object clone( );  
     public boolean equals(Object obj);  
     public int hashCode( );  
}

Passed To

SimpleDateFormat.{setDateFormatSymbols( ), SimpleDateFormat( )}

Returned By

SimpleDateFormat.getDateFormatSymbols( )

    Team LiB
    Previous Section Next Section