List of utility methods to do Properties Load from InputStream
Map | loadProperties(InputStream stream) Reads a property list using the Properties#load(InputStream) method. Properties properties = new Properties(); properties.load(stream); return toMap(properties); |
void | loadProperties(Properties props, InputStream inputStream) Convenience method used to load properties from the given file. try { InputStreamReader reader = new InputStreamReader(inputStream, "UTF-8"); props.load(reader); } catch (FileNotFoundException fnfe) { System.out.println("Unable to find properties file" + fnfe); } catch (UnsupportedEncodingException uee) { System.out.println("Unsupported encoding used in properties file" + uee); } catch (IOException ioe) { ... |
Properties | loadPropertiesFileFromStream(InputStream stream) Methode de chargement d'un fichier de proprietes a partir d'un stream if (stream == null) throw new RuntimeException("Erreur lors du chargement du fichier de proprietes: Le stream est null"); Properties properties = new Properties(); try { properties.load(new InputStreamReader(stream)); } catch (IOException e) { closeStream(stream); throw new RuntimeException("Erreur lors du chargement du fichier de proprietes", e); ... |
Properties | loadPropertiesFromStream(InputStream inputStream) load Properties From Stream try { Properties rtn = new Properties(); rtn.load(inputStream); return rtn; } catch (IOException ex) { throw new RuntimeException(ex); |
Map | loadPropertiesInputStreamToMap(InputStream propertiesInputStream) load Properties Input Stream To Map Properties properties = new Properties(); properties.load(propertiesInputStream); return propertiesToMap(properties); |
Properties | loadPropertiesStream(InputStream input) load Properties Stream Properties prop = new Properties(); prop.load(input); return prop; |