org.pf.nls
Class NLSUtil

java.lang.Object
  extended by org.pf.nls.NLSUtil

public class NLSUtil
extends Object

Provides some utility and convenience methods related NLS. The system property "org.pf.nls.path" can be used to specify the path for NLS text file lookup. Its value must be set like a classpath.

Version:
1.0
Author:
M.Duchrow

Method Summary
 Locale createLocale(String localeName)
          Creates a locale from the given name.
static NLSUtil current()
          Returns the only instance this class supports (design pattern "Singleton")
 org.pf.file.Classpath getNLSLookupPath()
          Returns a classpath that is used to lookup NLS text files.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

current

public static NLSUtil current()
Returns the only instance this class supports (design pattern "Singleton")


createLocale

public Locale createLocale(String localeName)
Creates a locale from the given name. That is the name is parsed and the different elements separated by '_' are used to instantiate a locale.


getNLSLookupPath

public org.pf.file.Classpath getNLSLookupPath()
Returns a classpath that is used to lookup NLS text files.



Copyright © 2015 Manfred Duchrow Consulting & Software. All rights reserved.