Class WikiTransformer
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendering.wiki.WikiTransformer
-
- All Implemented Interfaces:
freemarker.template.TemplateDirectiveModel
,freemarker.template.TemplateModel
public class WikiTransformer extends Object implements freemarker.template.TemplateDirectiveModel
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected WikiSerializer
serializer
-
Constructor Summary
Constructors Constructor Description WikiTransformer()
WikiTransformer(WikiSerializer serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body)
WikiSerializer
getSerializer()
void
transform(Reader reader, Writer writer)
void
transform(URL url, Writer writer)
-
-
-
Field Detail
-
serializer
protected final WikiSerializer serializer
-
-
Constructor Detail
-
WikiTransformer
public WikiTransformer()
-
WikiTransformer
public WikiTransformer(WikiSerializer serializer)
-
-
Method Detail
-
getSerializer
public WikiSerializer getSerializer()
-
transform
public void transform(Reader reader, Writer writer) throws RenderingException
- Throws:
RenderingException
-
transform
public void transform(URL url, Writer writer) throws RenderingException
- Throws:
RenderingException
-
execute
public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException
- Specified by:
execute
in interfacefreemarker.template.TemplateDirectiveModel
- Throws:
freemarker.template.TemplateException
IOException
-
-