com.atlassian.confluence.content.render.xhtml
Class PluggableTransformerChain

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain
All Implemented Interfaces:
Transformer

public class PluggableTransformerChain
extends Object
implements Transformer

A Transformer which passes the input through a series of other transformers provided by enabled plugins' TransformerModuleDescriptors, in addition to a set of defaults transformers. WARNING: This class if prone to OutOfMemoryErrors when the input is large.

Since:
4.0

Constructor Summary
PluggableTransformerChain(com.atlassian.plugin.PluginAccessor pluginAccessor, List<TransformerWeight> defaultTransformers, String transformerChainName)
           
 
Method Summary
 String transform(Reader input, ConversionContext conversionContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluggableTransformerChain

public PluggableTransformerChain(com.atlassian.plugin.PluginAccessor pluginAccessor,
                                 List<TransformerWeight> defaultTransformers,
                                 @NotNull
                                 String transformerChainName)
Method Detail

transform

public String transform(Reader input,
                        ConversionContext conversionContext)
                 throws XhtmlException
Specified by:
transform in interface Transformer
Returns:
Throws:
XhtmlParsingException - if there is a problem parsing the input parameter.
XhtmlException - for all other errors that may occur during transformation.


Copyright © 2003–2015 Atlassian. All rights reserved.