gistoolkit.config
Class Configurator

java.lang.Object
  extended bygistoolkit.config.Configurator

public class Configurator
extends java.lang.Object

Class for reading and writing configuration files. The GISToolkit configuration files are XML files that describe what to use to generate a map.

Author:
ithaqua

Constructor Summary
Configurator()
          Creates new Configurator
 
Method Summary
 java.lang.String getLineEnd()
          Set the line end string to use in writing the XML file.
static Node getXML(java.lang.String inLocation)
          Read an XML document from the given location, and parse it into a node tree
static void print(Node inNode)
          Print the contents of a node to the standard output stream
static void readConfig(GISDisplay inDisplay, java.lang.String inFileName)
          Set up the GISDisplay with the given configuration file
static void readConfig(Server inServer, java.lang.String inFileName)
          Set up the Server with the given configuration file.
static Node readConfig(java.lang.String inFileName)
          Reads configuration information from the given file.
static void writeConfig(GISDisplay inDisplay, java.lang.String inFileName)
          Write the configuration file for the GISDisplay
static void writeConfig(Node inNode, java.lang.String inFileName)
          Write the configuration file for the GISServer
static void writeConfig(Server inServer, java.lang.String inFileName)
          Write the configuration file for the GISServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configurator

public Configurator()
Creates new Configurator

Method Detail

getLineEnd

public java.lang.String getLineEnd()
Set the line end string to use in writing the XML file. Typically this will be set to a carage return (unix), or a carage return + line fead pair (pc). The default is a single carrage return (unix).


writeConfig

public static void writeConfig(GISDisplay inDisplay,
                               java.lang.String inFileName)
                        throws java.lang.Exception
Write the configuration file for the GISDisplay

Throws:
java.lang.Exception

readConfig

public static void readConfig(GISDisplay inDisplay,
                              java.lang.String inFileName)
                       throws java.lang.Exception
Set up the GISDisplay with the given configuration file

Throws:
java.lang.Exception

writeConfig

public static void writeConfig(Server inServer,
                               java.lang.String inFileName)
                        throws java.lang.Exception
Write the configuration file for the GISServer

Throws:
java.lang.Exception

readConfig

public static void readConfig(Server inServer,
                              java.lang.String inFileName)
                       throws java.lang.Exception
Set up the Server with the given configuration file.

Throws:
java.lang.Exception

writeConfig

public static void writeConfig(Node inNode,
                               java.lang.String inFileName)
                        throws java.lang.Exception
Write the configuration file for the GISServer

Throws:
java.lang.Exception

readConfig

public static Node readConfig(java.lang.String inFileName)
                       throws java.lang.Exception
Reads configuration information from the given file.

Throws:
java.lang.Exception

print

public static void print(Node inNode)
Print the contents of a node to the standard output stream


getXML

public static Node getXML(java.lang.String inLocation)
                   throws java.lang.Exception
Read an XML document from the given location, and parse it into a node tree

Throws:
java.lang.Exception