< prev index next >

src/java.base/share/classes/java/text/DateFormatSymbols.java

Print this page




  81  * new SimpleDateFormat(aPattern, DateFormatSymbols.getInstance(aLocale)).
  82  * </pre>
  83  * </blockquote>
  84  *
  85  * <p>
  86  * <code>DateFormatSymbols</code> objects are cloneable. When you obtain
  87  * a <code>DateFormatSymbols</code> object, feel free to modify the
  88  * date-time formatting data. For instance, you can replace the localized
  89  * date-time format pattern characters with the ones that you feel easy
  90  * to remember. Or you can change the representative cities
  91  * to your favorite ones.
  92  *
  93  * <p>
  94  * New <code>DateFormatSymbols</code> subclasses may be added to support
  95  * <code>SimpleDateFormat</code> for date-time formatting for additional locales.
  96 
  97  * @see          DateFormat
  98  * @see          SimpleDateFormat
  99  * @see          java.util.SimpleTimeZone
 100  * @author       Chen-Lieh Huang

 101  */
 102 public class DateFormatSymbols implements Serializable, Cloneable {
 103 
 104     /**
 105      * Construct a DateFormatSymbols object by loading format data from
 106      * resources for the default {@link java.util.Locale.Category#FORMAT FORMAT}
 107      * locale. This constructor can only
 108      * construct instances for the locales supported by the Java
 109      * runtime environment, not for those supported by installed
 110      * {@link java.text.spi.DateFormatSymbolsProvider DateFormatSymbolsProvider}
 111      * implementations. For full locale coverage, use the
 112      * {@link #getInstance(Locale) getInstance} method.
 113      * <p>This is equivalent to calling
 114      * {@link #DateFormatSymbols(Locale)
 115      *     DateFormatSymbols(Locale.getDefault(Locale.Category.FORMAT))}.
 116      * @see #getInstance()
 117      * @see java.util.Locale#getDefault(java.util.Locale.Category)
 118      * @see java.util.Locale.Category#FORMAT
 119      * @exception  java.util.MissingResourceException
 120      *             if the resources for the default locale cannot be




  81  * new SimpleDateFormat(aPattern, DateFormatSymbols.getInstance(aLocale)).
  82  * </pre>
  83  * </blockquote>
  84  *
  85  * <p>
  86  * <code>DateFormatSymbols</code> objects are cloneable. When you obtain
  87  * a <code>DateFormatSymbols</code> object, feel free to modify the
  88  * date-time formatting data. For instance, you can replace the localized
  89  * date-time format pattern characters with the ones that you feel easy
  90  * to remember. Or you can change the representative cities
  91  * to your favorite ones.
  92  *
  93  * <p>
  94  * New <code>DateFormatSymbols</code> subclasses may be added to support
  95  * <code>SimpleDateFormat</code> for date-time formatting for additional locales.
  96 
  97  * @see          DateFormat
  98  * @see          SimpleDateFormat
  99  * @see          java.util.SimpleTimeZone
 100  * @author       Chen-Lieh Huang
 101  * @since 1.1
 102  */
 103 public class DateFormatSymbols implements Serializable, Cloneable {
 104 
 105     /**
 106      * Construct a DateFormatSymbols object by loading format data from
 107      * resources for the default {@link java.util.Locale.Category#FORMAT FORMAT}
 108      * locale. This constructor can only
 109      * construct instances for the locales supported by the Java
 110      * runtime environment, not for those supported by installed
 111      * {@link java.text.spi.DateFormatSymbolsProvider DateFormatSymbolsProvider}
 112      * implementations. For full locale coverage, use the
 113      * {@link #getInstance(Locale) getInstance} method.
 114      * <p>This is equivalent to calling
 115      * {@link #DateFormatSymbols(Locale)
 116      *     DateFormatSymbols(Locale.getDefault(Locale.Category.FORMAT))}.
 117      * @see #getInstance()
 118      * @see java.util.Locale#getDefault(java.util.Locale.Category)
 119      * @see java.util.Locale.Category#FORMAT
 120      * @exception  java.util.MissingResourceException
 121      *             if the resources for the default locale cannot be


< prev index next >