dfki.util.config
Class XMLConfigReader

java.lang.Object
  |
  +--dfki.util.config.ConfigReader
        |
        +--dfki.util.config.XMLConfigReader

public class XMLConfigReader
extends ConfigReader


Inner Class Summary
static class XMLConfigReader.Exception
           
static class XMLConfigReader.Test
           
 
Inner classes inherited from class dfki.util.config.ConfigReader
ConfigReader.Exception
 
Field Summary
static java.lang.String LIST_ENRTY_TAG_NAME
           
 
Constructor Summary
XMLConfigReader()
           
XMLConfigReader(java.io.InputStream istream)
          Generischer Konstruktor zum Lesen einer Konfiguration aus einem InputStream
XMLConfigReader(java.lang.String path)
          Erstellt Konfiguration aus einer Datei
XMLConfigReader(java.net.URL url)
          Liest Konfiguration von einer URL
 
Method Summary
 void parseDocument()
          Generiert mConfigMap aus dem eingelesenen Konfigurationsdokument
 void parseInput()
          Erstellt ein Dokument aus dem eingelesenen InputSource Objekt
 void readFromFile(java.lang.String path)
           
 void readFromInputStream(java.io.InputStream istream)
           
 void readFromURL(java.net.URL url)
           
 java.util.Map readPropertySettings()
          Reads the property settings into a map.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIST_ENRTY_TAG_NAME

public static final java.lang.String LIST_ENRTY_TAG_NAME
Constructor Detail

XMLConfigReader

public XMLConfigReader()

XMLConfigReader

public XMLConfigReader(java.lang.String path)
                throws java.io.IOException,
                       XMLConfigReader.Exception
Erstellt Konfiguration aus einer Datei
Parameters:
path - Pfad der zu lesenden Konfigurationsdatei

XMLConfigReader

public XMLConfigReader(java.io.InputStream istream)
                throws java.io.IOException,
                       XMLConfigReader.Exception
Generischer Konstruktor zum Lesen einer Konfiguration aus einem InputStream
Parameters:
istream - InputStream

XMLConfigReader

public XMLConfigReader(java.net.URL url)
                throws java.io.IOException,
                       XMLConfigReader.Exception
Liest Konfiguration von einer URL
Parameters:
url - URL-Objekt der Quelle
Method Detail

parseDocument

public void parseDocument()
                   throws XMLConfigReader.Exception
Generiert mConfigMap aus dem eingelesenen Konfigurationsdokument

parseInput

public void parseInput()
                throws java.io.IOException,
                       XMLConfigReader.Exception
Erstellt ein Dokument aus dem eingelesenen InputSource Objekt

readFromFile

public void readFromFile(java.lang.String path)
                  throws java.io.IOException,
                         XMLConfigReader.Exception

readFromInputStream

public void readFromInputStream(java.io.InputStream istream)
                         throws java.io.IOException,
                                XMLConfigReader.Exception

readFromURL

public void readFromURL(java.net.URL url)
                 throws java.io.IOException,
                        XMLConfigReader.Exception

readPropertySettings

public java.util.Map readPropertySettings()
Description copied from class: ConfigReader
Reads the property settings into a map. Values of a property can either be of type String or String[] (in case of a multivalued property).
Overrides:
readPropertySettings in class ConfigReader
Following copied from class: dfki.util.config.ConfigReader
Throws:
ConfigReader.Exception - Denoting a failure while generating the property value map.
See Also:
Config.Property