ikrs.yuccasrv.util
Class ConfigReader

java.lang.Object
  extended by ikrs.yuccasrv.util.ConfigReader

public class ConfigReader
extends java.lang.Object

This XML reader was inspired by http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html


Constructor Summary
ConfigReader()
           
 
Method Summary
static void main(java.lang.String[] argv)
           
static Environment<java.lang.String,BasicType> read(java.io.File file)
          This wrapper method just calls the XMLEnvironmentReader that reads the whole XML file into a nested environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigReader

public ConfigReader()
Method Detail

read

public static Environment<java.lang.String,BasicType> read(java.io.File file)
                                                    throws java.io.IOException
This wrapper method just calls the XMLEnvironmentReader that reads the whole XML file into a nested environment. Text nodes will be kept.

Parameters:
file - The XML file you want to read.
Throws:
java.io.IOException

main

public static void main(java.lang.String[] argv)