FileDocCategorySizeDatePackage
I18N.javaAPI DocExample1437Sun Dec 14 22:47:30 GMT 2003oreilly.hcj.constants

I18N

public final class I18N extends Object
A class to provide internationalization strings.
author
Robert (Kraythe) Simmons jr.

Fields Summary
private static final String
BUNDLE_NAME
Holds the name of the resource bundle.
private static final ResourceBundle
BUNDLE
Holds the resource bundle.
Constructors Summary
private I18N()
Block construction.


	   	 
	  
	
Methods Summary
public static java.lang.StringgetString(java.lang.String key)
Get a string from the resources.

param
key The key of the string to get.
return
The value for that string; if not found returns !key!.

		try {
			return BUNDLE.getString(key);
		} catch (final MissingResourceException ex) {
			return '!" + key + '!";
		}