com.anthonyeden.lib.config.sax
Class SAXConfigurationFactory

java.lang.Object
  extended bycom.anthonyeden.lib.config.sax.SAXConfigurationFactory
All Implemented Interfaces:
ConfigurationFactory

public class SAXConfigurationFactory
extends java.lang.Object
implements ConfigurationFactory

Implementation of the ConfigurationFactory interface which generates a a configuration tree using a SAX parser.

Since:
2.0
Author:
Anthony Eden

Method Summary
 Configuration getConfiguration(java.lang.String id, java.io.InputStream in)
          Get the root Configuration object from the specified InputStream.
 Configuration getConfiguration(java.lang.String id, java.io.Reader in)
          Get the root Configuration object from the specified InputStream.
static SAXConfigurationFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SAXConfigurationFactory getInstance()

getConfiguration

public Configuration getConfiguration(java.lang.String id,
                                      java.io.InputStream in)
                               throws ConfigurationException
Get the root Configuration object from the specified InputStream.

Specified by:
getConfiguration in interface ConfigurationFactory
Parameters:
id - The id of the configuration (file path, URL, etc)
in - The InputStream
Returns:
The Configuration object
Throws:
ConfigurationException

getConfiguration

public Configuration getConfiguration(java.lang.String id,
                                      java.io.Reader in)
                               throws ConfigurationException
Get the root Configuration object from the specified InputStream.

Specified by:
getConfiguration in interface ConfigurationFactory
Parameters:
id - The id of the configuration (file path, URL, etc)
in - The InputStream
Returns:
The Configuration object
Throws:
ConfigurationException


Copyright (c) 2000-2003 Anthony Eden. All Rights Reserved.