Code example for PropertyResourceBundle

0
 
	public PropertyList(String sFileName) throws CommonFatalException {
		InputStream fis = null;
		try { 
			fis = new BufferedInputStream(new FileInputStream(sFileName));
			this.bundle = new PropertyResourceBundle(fis);
		} 
		catch (IOException e) {
			throw new CommonFatalException(e);
		} 
		finally { 
			if (fis != null) {
				try { 
					fis.close();
				} 
				catch (IOException e) {
					throw new CommonFatalException(e);
				} 
			} 
		} 
	}