Package org.apache.avalon.framework.configuration

Examples of org.apache.avalon.framework.configuration.DefaultConfigurationSerializer.serialize()


        Source confSource = null;
        try {
       
          confSource = this.resolver.resolveURI(rootDir + confFile);
            if (confSource instanceof ModifiableSource) {
                confSer.serialize(((ModifiableSource) confSource).getOutputStream(), configuration);
            }
        } catch (MalformedURLException e) {
            e.printStackTrace();
        } catch (SourceException e) {
            e.printStackTrace();
View Full Code Here


    public Configuration getConfiguration() throws SAXException, ConfigurationException {

        if (this.conf == null) return null;
        InterpolatingConfigurationHandler handler = new InterpolatingConfigurationHandler(this.vars, this.conf.getLocation());
        DefaultConfigurationSerializer ser = new DefaultConfigurationSerializer();
        ser.serialize(handler, this.conf);
        return handler.getConfiguration();
    }

}
View Full Code Here

    Configuration config = (Configuration) getConfigsFromTree(subTree).get(0);
    DefaultConfigurationSerializer saver = new DefaultConfigurationSerializer();

    saver.setIndent(true);
    try {
      saver.serialize(writer, config);
    } catch (SAXException e) {
      throw new IOException("SAX implementation problem");
    } catch (ConfigurationException e) {
      throw new IOException("Problem using Avalon Configuration tools");
    }
View Full Code Here

    Configuration config = (Configuration)getConfigsFromTree(subTree).get(0);
    DefaultConfigurationSerializer saver = new DefaultConfigurationSerializer();
    saver.setIndent(true);
    try
    {
      saver.serialize(writer,config);
    }
    catch(SAXException e)
    {
      throw new IOException("SAX implementation problem");
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.