org.compass.core.util.config
Class JsonConfigurationHelperBuilder

java.lang.Object
  extended by org.compass.core.util.config.JsonConfigurationHelperBuilder

public class JsonConfigurationHelperBuilder
extends Object

A JSON configuration helper parser.

Author:
kimchy

Constructor Summary
JsonConfigurationHelperBuilder()
           
 
Method Summary
 ConfigurationHelper build(InputStream inputStream, String systemId)
          Build a configuration object using an InputStream; supplying a systemId to make messages about all kinds of errors more meaningfull.
 ConfigurationHelper build(Reader reader, String systemId)
           
 ConfigurationHelper buildFromFile(File file)
          Build a configuration object from a file using a File object.
 ConfigurationHelper buildFromFile(String filename)
          Build a configuration object from a file using a filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonConfigurationHelperBuilder

public JsonConfigurationHelperBuilder()
Method Detail

buildFromFile

public ConfigurationHelper buildFromFile(String filename)
                                  throws ConfigurationException
Build a configuration object from a file using a filename.

Throws:
ConfigurationException

buildFromFile

public ConfigurationHelper buildFromFile(File file)
                                  throws ConfigurationException
Build a configuration object from a file using a File object.

Throws:
ConfigurationException

build

public ConfigurationHelper build(InputStream inputStream,
                                 String systemId)
                          throws ConfigurationException
Build a configuration object using an InputStream; supplying a systemId to make messages about all kinds of errors more meaningfull.

Throws:
ConfigurationException

build

public ConfigurationHelper build(Reader reader,
                                 String systemId)


Copyright (c) 2004-2009 The Compass Project.