Package org.apache.continuum.web.appearance.io.xpp3

Examples of org.apache.continuum.web.appearance.io.xpp3.ContinuumAppearanceModelsXpp3Reader


        throws IOException
    {
        String safeFooterHtmlContent = Jsoup.clean( footerHtmlContent, Whitelist.basic() );

        continuumAppearance.setFooter( safeFooterHtmlContent );
        ContinuumAppearanceModelsXpp3Writer writer = new ContinuumAppearanceModelsXpp3Writer();
        File confFile = getAppearanceConfigurationFile();
        if ( !confFile.exists() )
        {
            confFile.getParentFile().mkdirs();
        }
        FileWriter fileWriter = new FileWriter( confFile );
        writer.write( fileWriter, continuumAppearance );
        fileWriter.close();
        this.footer = safeFooterHtmlContent;
    }
View Full Code Here


     */
    public void saveFooter( String footerHtmlContent )
        throws IOException
    {
        continuumAppearance.setFooter( footerHtmlContent );
        ContinuumAppearanceModelsXpp3Writer writer = new ContinuumAppearanceModelsXpp3Writer();
        File confFile = getAppearanceConfigurationFile();
        if ( !confFile.exists() )
        {
            confFile.getParentFile().mkdirs();
        }
        writer.write( new FileWriter( confFile ), continuumAppearance );
        this.footer = footerHtmlContent;
    }
View Full Code Here

     */
    public void saveFooter( String footerHtmlContent )
        throws IOException
    {
        continuumAppearance.setFooter( footerHtmlContent );
        ContinuumAppearanceModelsXpp3Writer writer = new ContinuumAppearanceModelsXpp3Writer();
        File confFile = getAppearanceConfigurationFile();
        if ( !confFile.exists() )
        {
            confFile.getParentFile().mkdirs();
        }
        FileWriter fileWriter = new FileWriter( confFile );
        writer.write( fileWriter, continuumAppearance );
        fileWriter.close();
        this.footer = footerHtmlContent;
    }
View Full Code Here

     */
    public void saveFooter( String footerHtmlContent )
        throws IOException
    {
        continuumAppearance.setFooter( footerHtmlContent );
        ContinuumAppearanceModelsXpp3Writer writer = new ContinuumAppearanceModelsXpp3Writer();
        File confFile = getAppearanceConfigurationFile();
        if (!confFile.exists())
        {
            confFile.getParentFile().mkdirs();
        }
        writer.write( new FileWriter( confFile ), continuumAppearance );
        this.footer = footerHtmlContent;
    }
View Full Code Here

TOP

Related Classes of org.apache.continuum.web.appearance.io.xpp3.ContinuumAppearanceModelsXpp3Reader

Copyright © 2018 www.massapicom. 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.