Package de.undercouch.citeproc
Class DefaultLocaleProvider
- java.lang.Object
-
- de.undercouch.citeproc.DefaultLocaleProvider
-
- All Implemented Interfaces:
LocaleProvider
public class DefaultLocaleProvider extends Object implements LocaleProvider
Default implementation ofLocaleProvider. Loads locales from the classpath.- Author:
- Michel Kraemer
-
-
Constructor Summary
Constructors Constructor Description DefaultLocaleProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringretrieveLocale(String lang)Retrieves the serialized XML for the given locale from the classpath.
-
-
-
Method Detail
-
retrieveLocale
public String retrieveLocale(String lang)
Retrieves the serialized XML for the given locale from the classpath. For example, if the locale isen-USthis method loads the file/locales-en-US.xmlfrom the classpath.- Specified by:
retrieveLocalein interfaceLocaleProvider- Parameters:
lang- the locale identifier (e.g. "en" or "en-GB")- Returns:
- the serializes XML of the given locale or null if there is no such locale
-
-