Package org.radeox.engine
Class BaseRenderEngine
- java.lang.Object
-
- org.radeox.engine.BaseRenderEngine
-
- All Implemented Interfaces:
RenderEngine
public class BaseRenderEngine extends Object implements RenderEngine
Base implementation of RenderEngine- Version:
- $Id: BaseRenderEngine.java 7707 2006-04-12 17:30:19Z ian@caret.cam.ac.uk $
- Author:
- Stephan J. Schmidt
-
-
Field Summary
Fields Modifier and Type Field Description protected FilterPipefpprotected InitialRenderContextinitialContext
-
Constructor Summary
Constructors Constructor Description BaseRenderEngine()BaseRenderEngine(InitialRenderContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMacro(Macro macro)StringgetName()Name of the RenderEngine.protected voidinit()Stringrender(Reader in, RenderContext context)Render an input with text markup from a Reader and write the result to a writervoidrender(Writer out, String content, RenderContext context)Stringrender(String content, RenderContext context)Render an input with text markup and return a String with e.g.
-
-
-
Field Detail
-
initialContext
protected InitialRenderContext initialContext
-
fp
protected FilterPipe fp
-
-
Constructor Detail
-
BaseRenderEngine
public BaseRenderEngine(InitialRenderContext context)
-
BaseRenderEngine
public BaseRenderEngine()
-
-
Method Detail
-
init
protected void init()
-
getName
public String getName()
Name of the RenderEngine. This is used to get a RenderEngine instance with EngineManager.getInstance(name);- Specified by:
getNamein interfaceRenderEngine- Returns:
- name Name of the engine
-
render
public String render(String content, RenderContext context)
Render an input with text markup and return a String with e.g. HTML- Specified by:
renderin interfaceRenderEngine- Parameters:
content- String with the input to rendercontext- Special context for the filter engine, e.g. with configuration information- Returns:
- result Output with rendered content
-
render
public String render(Reader in, RenderContext context) throws IOException
Render an input with text markup from a Reader and write the result to a writer- Specified by:
renderin interfaceRenderEngine- Parameters:
in- Reader to read the input fromcontext- Special context for the render engine, e.g. with configuration information- Throws:
IOException
-
render
public void render(Writer out, String content, RenderContext context) throws IOException
- Specified by:
renderin interfaceRenderEngine- Throws:
IOException
-
addMacro
public void addMacro(Macro macro)
- Specified by:
addMacroin interfaceRenderEngine
-
-