Lines Matching refs:locale
68 public DateFormat getDateInstance(int style, Locale locale) {
70 if (Utils.supportsLocale(avail[i], locale)) {
71 return new FooDateFormat(datePattern[style]+dialect[i], locale);
74 throw new IllegalArgumentException("locale is not supported: "+locale);
77 public DateFormat getTimeInstance(int style, Locale locale) {
79 if (Utils.supportsLocale(avail[i], locale)) {
80 return new FooDateFormat(timePattern[style]+dialect[i], locale);
83 throw new IllegalArgumentException("locale is not supported: "+locale);
86 public DateFormat getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) {
88 if (Utils.supportsLocale(avail[i], locale)) {
90 datePattern[dateStyle]+" "+timePattern[timeStyle]+dialect[i], locale);
93 throw new IllegalArgumentException("locale is not supported: "+locale);