Class XmlProperties
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap
-
- org.onemind.commons.java.datastructure.XmlProperties
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map
public class XmlProperties extends java.util.HashMap
An XmlPropertiesReader read a properties out of an xml file. The xml is read using dom parser. It support all the java primitive types and in addition creation of instance of ElementDigester- Version:
- $Id: XmlProperties.java,v 1.3 2005/06/22 22:57:52 thlee Exp $ $Name: $
- Author:
- TiongHiang Lee (thlee@onemindsoft.org)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XmlProperties(java.io.InputStream is)
ConstructorXmlProperties(java.lang.String filename)
Constructor
-
Method Summary
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Constructor Detail
-
XmlProperties
public XmlProperties(java.lang.String filename) throws java.io.FileNotFoundException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
Constructor- Parameters:
filename
- the file name- Throws:
java.io.FileNotFoundException
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
-
XmlProperties
public XmlProperties(java.io.InputStream is) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
Constructor- Parameters:
stream
-- Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
-
-