QuickServer
v1.4.5

org.quickserver.util.xmlreader
Class ConfigReader

java.lang.Object
  extended byorg.quickserver.util.xmlreader.ConfigReader

public class ConfigReader
extends java.lang.Object

This class reads the xml configuration and gives QuickServerConfig object.

Since:
1.3
Author:
Akshathkumar Shetty

Constructor Summary
ConfigReader()
           
 
Method Summary
static void checkXMLVersion(java.io.File file)
          Checks the passes xml file and if old version is found it converts it to new one.
static java.io.File makeAbsoluteToConfig(java.lang.String fileName, QuickServerConfig config)
          Make the file passed absolute, relative to the location of configuration file that loaded QuickServerConfig object passed.
static QuickServerConfig read(java.io.File input)
          Parses XML config of QuickServer of version 1.3 and above
static QuickServerConfig read(java.lang.String fileName)
          Parses XML config of QuickServer of version 1.3 and above
static QuickServerConfig readXMLv1_2(java.io.File input)
          Parses XML config of QuickServer of version 1.2 only.
 
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 QuickServerConfig read(java.lang.String fileName)
                              throws java.lang.Exception
Parses XML config of QuickServer of version 1.3 and above

Throws:
java.lang.Exception
Since:
1.3

read

public static QuickServerConfig read(java.io.File input)
                              throws java.lang.Exception
Parses XML config of QuickServer of version 1.3 and above

Throws:
java.lang.Exception
Since:
1.4

checkXMLVersion

public static void checkXMLVersion(java.io.File file)
                            throws java.lang.Exception
Checks the passes xml file and if old version is found it converts it to new one. Old version is saved with .bak
Throws:
java.lang.Exception
Since:
1.3

readXMLv1_2

public static QuickServerConfig readXMLv1_2(java.io.File input)
                                     throws java.lang.Exception
Parses XML config of QuickServer of version 1.2 only.

Throws:
java.lang.Exception

makeAbsoluteToConfig

public static java.io.File makeAbsoluteToConfig(java.lang.String fileName,
                                                QuickServerConfig config)
Make the file passed absolute, relative to the location of configuration file that loaded QuickServerConfig object passed.

Since:
1.4

QuickServer
v1.4.5

Copyright © 2003-2005 QuickServer.org