// Path: src/main/java/xdb/control/Renderer.java
// public interface Renderer {
// 
//     /**
//      * Mime type generated by this renderer (text/html, text/xml, etc.).
//      * 
//      * @return The mime type.
//      */
//     public String getMimeType();
// 
//     /**
//      * Write query results to an output stream.
//      * 
//      * @param results
//      *            The list of results to render.
//      * @param out
//      *            The output stream.
//      * @param params
//      *            The query parameters.
//      * @throws java.io.IOException
//      *             For errors.
//      */
//     public void render(List<Node> results, PrintWriter out, Map<String, String[]> params)
//         throws IOException;
// }


import java.io.IOException;
import org.w3c.dom.Element;
import xdb.control.Renderer;
package xdb.renderer;




/**
 * Class for initializing renderers from their configuration.
 */
public final class RendererInit {

    private RendererInit() {
    }

    /**
     * Init the renderer from its configuration.
     * 
     * @param configElement
     *            The configuration element.
     * @param fileName
     *            The file name.
     * @return The renderer.
     * @throws IOException
     *             For errors.
     */
// Path: src/main/java/xdb/control/Renderer.java
// public interface Renderer {
// 
//     /**
//      * Mime type generated by this renderer (text/html, text/xml, etc.).
//      * 
//      * @return The mime type.
//      */
//     public String getMimeType();
// 
//     /**
//      * Write query results to an output stream.
//      * 
//      * @param results
//      *            The list of results to render.
//      * @param out
//      *            The output stream.
//      * @param params
//      *            The query parameters.
//      * @throws java.io.IOException
//      *             For errors.
//      */
//     public void render(List<Node> results, PrintWriter out, Map<String, String[]> params)
//         throws IOException;
// }


// Path: src/main/java/xdb/renderer/RendererInit.java
import java.io.IOException;
import org.w3c.dom.Element;
import xdb.control.Renderer;

package xdb.renderer;




/**
 * Class for initializing renderers from their configuration.
 */
public final class RendererInit {

    private RendererInit() {
    }

    /**
     * Init the renderer from its configuration.
     * 
     * @param configElement
     *            The configuration element.
     * @param fileName
     *            The file name.
     * @return The renderer.
     * @throws IOException
     *             For errors.
     */
    public static Renderer init(Element configElement, String fileName) throws IOException {