Code example for ResourceBundle

Methods: getKeys

0
	} 
   
	@Override 
	public Enumeration<String> getKeys() {
		// TODO Auto-generated method stub 
		return RESOURCE_BUNDLE.getKeys();
	} 
 
	@Override 
	protected Object handleGetObject(String key) {
		try { 
			String label = new String(RESOURCE_BUNDLE.getString(key).getBytes("ISO-8859-1"),"UTF8");
			return label;
		} catch (Exception e) {
			return '!' + key + '!';
		} 
	} 
 
}