Possibly, but you need more than just the locale. I've been checking it out a bit, and you need at least the following:
- the Locale
- a sub class of java.text.spi.DateFormatProvider - a way to combine the two
Unfortunately, the latter is located in class sun.util.LocaleServiceProviderPool of which the source is not in the src.zip file in the JDK folder. Here is the calling code from DateFormat.get(int, int int, Locale):
flags is 1 for time, 2 for date and 3 for date/time. timeStyle and dateStyle are one of DateFormat.FULL, LONG, MEDIUM, SHORT or DEFAULT. loc is the Locale. DateFormatGetter is a private nested class:
It essentially only calls one of the methods of a DateFormatProvider instance, but the mapping is still somewhere in the LocaleServiceProviderPool. Perhaps you can read how to connect them in the Javadoc of java.util.spi.LocaleServiceProvider.