org.onemind.commons.java.datastructure
Class XmlProperties

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byorg.onemind.commons.java.datastructure.XmlProperties
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

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
XmlProperties(java.io.InputStream is)
          Constructor
XmlProperties(java.lang.String filename)
          Constructor
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

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

Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException


Copyright © 2004-2006 . All Rights Reserved.