Code example for PropertyResourceBundle

0
		if(file.exists())
		{ 
			try 
			{ 
				//if(javaVersion.equalsIgnoreCase("1.3") || javaVersion.equalsIgnoreCase("1.4") || javaVersion.equalsIgnoreCase("1.5")) 
					resourceBundle = new PropertyResourceBundle(new FileInputStream(file));
				//else 
					//resourceBundle = new PropertyResourceBundle(new FileReader(file)); 
			} 
			catch (Exception e) 
			{ 
				logger.error("Could not load custom resource bundle for locale " + locale.getLanguage() + ":" + e.getMessage(), e);
			} 
		} 
		 
		return resourceBundle;
	} 
	 
	 
    public static DigitalAsset create(DigitalAssetVO digitalAssetVO, InputStream is) throws SystemException 
Experience pair programming with AI  Get Codota for Java