Clover Coverage Report
Coverage timestamp: Fri Jun 27 2008 17:20:33 EDT
../../../../img/srcFileCovDistChart9.png 50% of files have more coverage
382   1,706   148   6.47
44   692   0.39   59
59     2.51  
1    
0.4% of code in this file is excluded from these metrics.
 
  DateFormatSymbols       Line # 74 382 148 90.1% 0.9010309
 
No Tests
 
1    /*
2    *******************************************************************************
3    * Copyright (C) 1996-2008, International Business Machines Corporation and *
4    * others. All Rights Reserved. *
5    *******************************************************************************
6    */
7   
8    package com.ibm.icu.text;
9   
10    import java.io.IOException;
11    import java.io.ObjectInputStream;
12    import java.io.Serializable;
13    import java.util.Locale;
14    import java.util.MissingResourceException;
15    import java.util.ResourceBundle;
16   
17    import com.ibm.icu.impl.CalendarData;
18    import com.ibm.icu.impl.ICUCache;
19    import com.ibm.icu.impl.ICUResourceBundle;
20    import com.ibm.icu.impl.SimpleCache;
21    import com.ibm.icu.impl.Utility;
22    import com.ibm.icu.impl.ZoneMeta;
23    import com.ibm.icu.impl.ZoneStringFormat;
24    import com.ibm.icu.util.Calendar;
25    import com.ibm.icu.util.ULocale;
26    import com.ibm.icu.util.UResourceBundle;
27   
28    /**
29    * <code>DateFormatSymbols</code> is a public class for encapsulating
30    * localizable date-time formatting data, such as the names of the
31    * months, the names of the days of the week, and the time zone data.
32    * <code>DateFormat</code> and <code>SimpleDateFormat</code> both use
33    * <code>DateFormatSymbols</code> to encapsulate this information.
34    *
35    * <p>
36    * Typically you shouldn't use <code>DateFormatSymbols</code> directly.
37    * Rather, you are encouraged to create a date-time formatter with the
38    * <code>DateFormat</code> class's factory methods: <code>getTimeInstance</code>,
39    * <code>getDateInstance</code>, or <code>getDateTimeInstance</code>.
40    * These methods automatically create a <code>DateFormatSymbols</code> for
41    * the formatter so that you don't have to. After the
42    * formatter is created, you may modify its format pattern using the
43    * <code>setPattern</code> method. For more information about
44    * creating formatters using <code>DateFormat</code>'s factory methods,
45    * see {@link DateFormat}.
46    *
47    * <p>
48    * If you decide to create a date-time formatter with a specific
49    * format pattern for a specific locale, you can do so with:
50    * <blockquote>
51    * <pre>
52    * new SimpleDateFormat(aPattern, new DateFormatSymbols(aLocale)).
53    * </pre>
54    * </blockquote>
55    *
56    * <p>
57    * <code>DateFormatSymbols</code> objects are clonable. When you obtain
58    * a <code>DateFormatSymbols</code> object, feel free to modify the
59    * date-time formatting data. For instance, you can replace the localized
60    * date-time format pattern characters with the ones that you feel easy
61    * to remember. Or you can change the representative cities
62    * to your favorite ones.
63    *
64    * <p>
65    * New <code>DateFormatSymbols</code> subclasses may be added to support
66    * <code>SimpleDateFormat</code> for date-time formatting for additional locales.
67   
68    * @see DateFormat
69    * @see SimpleDateFormat