zisko.multicastor.program.model
Class xmlParser

java.lang.Object
  extended by zisko.multicastor.program.model.xmlParser
All Implemented Interfaces:
XMLParserInterface

public class xmlParser
extends java.lang.Object
implements XMLParserInterface

XML Parser Klasse die das Interface XMLParserInterface implementiert und die Daten aus den XML Konfigurationsdateien in den Datenstrukturen speichert.


Constructor Summary
xmlParser(java.util.logging.Logger logger)
          Konstruktor
 
Method Summary
 void loadGUIConfig(java.lang.String path, GUIData data)
          Laedt die Multicast GUI Config
 void loadMultiCastConfig(java.lang.String path, java.util.Vector<MulticastData> v)
          Laedt die Multicast Data Config
 void saveGUIConfig(java.lang.String pfad, GUIData data)
          Speichert die Multicastor GUI Informationen in dem XML File
 void saveMulticastConfig(java.lang.String pfad, java.util.Vector<MulticastData> v)
          speichert die Multicast Data Config aus dem MulticastData Vector in einer XML Datei
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

xmlParser

public xmlParser(java.util.logging.Logger logger)
Konstruktor

Parameters:
logger - Logger fuer die Ausgaben
Method Detail

loadMultiCastConfig

public void loadMultiCastConfig(java.lang.String path,
                                java.util.Vector<MulticastData> v)
                         throws org.xml.sax.SAXException,
                                java.io.FileNotFoundException,
                                java.io.IOException,
                                WrongConfigurationException
Laedt die Multicast Data Config

Specified by:
loadMultiCastConfig in interface XMLParserInterface
Parameters:
path - Pfad zur XML Datei
v - MulticastData Vector
Throws:
org.xml.sax.SAXException
java.io.FileNotFoundException
java.io.IOException
WrongConfigurationException

loadGUIConfig

public void loadGUIConfig(java.lang.String path,
                          GUIData data)
                   throws org.xml.sax.SAXException,
                          java.io.FileNotFoundException,
                          java.io.IOException,
                          WrongConfigurationException
Laedt die Multicast GUI Config

Specified by:
loadGUIConfig in interface XMLParserInterface
Parameters:
path - Pfad zur XML Datei
data - GUIData Objekt mit den GUI Daten
Throws:
java.io.IOException
org.xml.sax.SAXException
java.io.FileNotFoundException
WrongConfigurationException

saveGUIConfig

public void saveGUIConfig(java.lang.String pfad,
                          GUIData data)
                   throws java.io.IOException
Speichert die Multicastor GUI Informationen in dem XML File

Specified by:
saveGUIConfig in interface XMLParserInterface
Parameters:
pfad - Pfad zur XML Datei
data - GUI Daten Objekt
Throws:
java.io.IOException

saveMulticastConfig

public void saveMulticastConfig(java.lang.String pfad,
                                java.util.Vector<MulticastData> v)
                         throws java.io.IOException
speichert die Multicast Data Config aus dem MulticastData Vector in einer XML Datei

Specified by:
saveMulticastConfig in interface XMLParserInterface
Parameters:
pfad - Pfad zur XML Datei
v - MulticastData Vector
Throws:
java.io.IOException