jfun.jaskell.conf
Class ConfReader

java.lang.Object
  extended by jfun.jaskell.conf.ConfReader

public final class ConfReader
extends java.lang.Object

This class is responsible for reading configuration from a jaskell configuration file.

Zephyr Business Solutions Corp.

Author:
Ben Yu

Method Summary
static ConfReader instance()
          Creates a ConfReader instance.
static ConfReader instance(Jaskell jaskell)
          Create a ConfReader instance.
 Configuration readConfig(java.io.File f)
          Read a jaskell file and return the information in a Configuration object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readConfig

public Configuration readConfig(java.io.File f)
                         throws java.io.IOException
Read a jaskell file and return the information in a Configuration object.

Parameters:
f - the jaskell file.
Returns:
the Configuration object.
Throws:
java.io.IOException - when the file cannot be read.

instance

public static ConfReader instance(Jaskell jaskell)
Create a ConfReader instance.

Parameters:
jaskell - the Jaskell runtime object that is responsible for interpreting the jaskell configuration file.
Returns:
the ConfReader object.

instance

public static ConfReader instance()
Creates a ConfReader instance.

Returns:
the ConfReader instance.