Quantcast
Channel: Javalobby - properties
Viewing all articles
Browse latest Browse all 12

Loading An Xml Properties File

$
0
0
// simple example of loading an xml file into Properties.<code> Properties properties = new Properties(); try { InputStream xmlStream = getClass().getResourceAsStream("properties.xml"); if( xmlStream == null ) { //throw some error } properties.loadFromXML(xmlStream); } catch (IOException...

Viewing all articles
Browse latest Browse all 12

Trending Articles