dfki.util.config
Class XMLConfigReader
java.lang.Object
|
+--dfki.util.config.ConfigReader
|
+--dfki.util.config.XMLConfigReader
- public class XMLConfigReader
- extends ConfigReader
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LIST_ENRTY_TAG_NAME
public static final java.lang.String LIST_ENRTY_TAG_NAME
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
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