Code example for PropertyResourceBundle

0
		 
		 
		try { 
			BufferedReader in = new BufferedReader(
					new InputStreamReader(AjudaMessages.class.getResourceAsStream("/br/fgv/model/ajuda_messages.properties"), "UTF-8"));
			RESOURCE_BUNDLE = new PropertyResourceBundle(in);
			in.close();
		} catch (IOException e) {
			RESOURCE_BUNDLE = null;
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} 
		 
	} 
	 
	private AjudaMessages() { 
	} 
 
	public static String getString(String key) {
		try { 
			return RESOURCE_BUNDLE.getString(key);