All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.commons.jelly.XMLOutputFactory Maven / Gradle / Ivy

Go to download

Jelly is a Java and XML based scripting engine. Jelly combines the best ideas from JSTL, Velocity, DVSL, Ant and Cocoon all together in a simple yet powerful scripting engine.

The newest version!
package org.apache.commons.jelly;

import java.io.Writer;

/**
 * Factory to create an XMLOutput for a given Writer.
 * An instance may be placed in the JellyContext (variable called
 * org.apache.commons.jelly.XMLOutputFactory) so that TagScript will use
 * a custom output instead of the default XMLOutput.createXMLOutput().
 *
 * @author [email protected]
 */
public interface XMLOutputFactory {

    /**
     * @param Write output to this writer
     * @param escapeText is whether or not text output will be escaped. This must be true
     *   if the underlying output is XML or could be false if the underlying output is textual.
     * @return XMLOutput that will write to given writer
     */
    public XMLOutput createXMLOutput(Writer writer, boolean escapeText);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy