Code example for PropertyResourceBundle

0
		return b;
	} 
	 
	public ResourceBundle  read3 (String name) throws IOException {
		InputStream in=new BufferedInputStream(new FileInputStream(name));
		ResourceBundle b=new PropertyResourceBundle(in);
		return b;
	} 
	 
	public Properties read4(String name) throws IOException {
		InputStream in=ReadProperties.class.getResourceAsStream(name);
		Properties p=new Properties();
		p.load(in);
		return p;
	} 
	 
	public Properties read5(String name) throws IOException {
		InputStream in=ReadProperties.class.getClassLoader().getResourceAsStream(name); 
		Properties p=new Properties();
		p.load(in);
Contextual code suggestions in your IDE  Get Codota for Java