全パッケージ クラス階層 このパッケージ 前項目 次項目 インデックス
java.lang.Object | +----java.text.DateFormatSymbols
DateFormatSymbolsは、月、曜日、時間帯データなど、ローカル化可能なフォーマットデータをカプセル化するための publicクラスです。DateFormatと SimpleDateFormat はともに DateFormatSymbolsを使ってこの情報をカプセル化します。
 一般には、DateFormatSymbolsを直接使うことはしません。この代わりに、できるだけ DateFormatクラスのファクトリメソッド getTimeInstanceか getDateInstanceか getDateTimeInstanceを使って日付/時刻フォーマッタを作成してください。これらのメソッドを使うと、そのフォーマッタの DateFormatSymbolsが自動的に作成されますので、それを新たに作成する必要はありません。そのフォーマッタが作成されたら、そのフォーマットパターンは setPatternメソッドを使って修正することができます。DateFormatのファクトリメソッドを使って、フォーマットを作成する方法については、DateFormatを参照してください。
 
特定のロケールに対する特定のフォーマットパターンを使って日付/時刻を作成する場合には、次のようにします。
new SimpleDateFormat(aPattern, new DateFormatSymbols(aLocale)).
DateFormatSymbolsオブジェクトは、クローン可能です。DateFormatSymbolsオブジェクトを入手したら、その日付/時刻フォーマット化データを自由に修正することができます。たとえば、ローカル化された日付/時刻フォーマットパターン文字を覚えやすいもので置き換えることができます。あるいは、代表的な都市名を好みのものに変えることができます。
追加ロケールに対する日付/時刻フォーマット機能のために、新しい DateFormatSymbolsサブクラスを追加して SimpleDateFormatをサポートすることができます。
 
 DateFormatSymbols()
	DateFormatSymbols()
   DateFormatSymbols(Locale)
	DateFormatSymbols(Locale)
   
 clone()
	clone()
   equals(Object)
	equals(Object)
   getAmPmStrings()
	getAmPmStrings()
   getEras()
	getEras()
   getLocalPatternChars()
	getLocalPatternChars()
   getMonths()
	getMonths()
   getShortMonths()
	getShortMonths()
   getShortWeekdays()
	getShortWeekdays()
   getWeekdays()
	getWeekdays()
   getZoneStrings()
	getZoneStrings()
   hashCode()
	hashCode()
   setAmPmStrings(String[])
	setAmPmStrings(String[])
   setEras(String[])
	setEras(String[])
   setLocalPatternChars(String)
	setLocalPatternChars(String)
   setMonths(String[])
	setMonths(String[])
   setShortMonths(String[])
	setShortMonths(String[])
   setShortWeekdays(String[])
	setShortWeekdays(String[])
   setWeekdays(String[])
	setWeekdays(String[])
   setZoneStrings(String[][])
	setZoneStrings(String[][])
   
 DateFormatSymbols
DateFormatSymbols
public DateFormatSymbols()
 DateFormatSymbols
DateFormatSymbols
public DateFormatSymbols(Locale locale)
 
 getEras
getEras
public String[] getEras()
 setEras
setEras
public void setEras(String newEras[])
 getMonths
getMonths
public String[] getMonths()
 setMonths
setMonths
public void setMonths(String newMonths[])
 getShortMonths
getShortMonths
public String[] getShortMonths()
 setShortMonths
setShortMonths
public void setShortMonths(String newShortMonths[])
 getWeekdays
getWeekdays
public String[] getWeekdays()
 setWeekdays
setWeekdays
public void setWeekdays(String newWeekdays[])
 getShortWeekdays
getShortWeekdays
public String[] getShortWeekdays()
 setShortWeekdays
setShortWeekdays
public void setShortWeekdays(String newShortWeekdays[])
 getAmPmStrings
getAmPmStrings
public String[] getAmPmStrings()
 setAmPmStrings
setAmPmStrings
public void setAmPmStrings(String newAmpms[])
 getZoneStrings
getZoneStrings
public String[][] getZoneStrings()
 setZoneStrings
setZoneStrings
public void setZoneStrings(String newZoneStrings[][])
 getLocalPatternChars
getLocalPatternChars
public String getLocalPatternChars()
 setLocalPatternChars
setLocalPatternChars
public void setLocalPatternChars(String newLocalPatternChars)
 clone
clone
public Object clone()
 hashCode
hashCode
public int hashCode()
 equals
equals
public boolean equals(Object obj)
全パッケージ クラス階層 このパッケージ 前項目 次項目 インデックス