com.atlassian.jira.util
Class LocaleParser

java.lang.Object
  extended by com.atlassian.jira.util.LocaleParser

public class LocaleParser
extends java.lang.Object

Static utility to parse locale Strings into Locale objects.

This was previously provided by JiraLocaleUtils, but JiraLocaleUtils was deprecated.

Since:
v4.2

Constructor Summary
LocaleParser()
           
 
Method Summary
static java.util.Locale parseLocale(java.lang.String localeString)
          Creates a locale from the given string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleParser

public LocaleParser()
Method Detail

parseLocale

public static java.util.Locale parseLocale(java.lang.String localeString)
Creates a locale from the given string. Similar to LocaleUtils, but this one is static

Parameters:
localeString - locale String
Returns:
new locale based on the parameter, or null if parameter not set


Copyright © 2002-2010 Atlassian. All Rights Reserved.