com.atlassian.confluence.content.render.xhtml.editor
Class DefaultEditorConverter

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.editor.DefaultEditorConverter
All Implemented Interfaces:
EditorConverter

public class DefaultEditorConverter
extends Object
implements EditorConverter

Instigate the conversion of HTML received from the Confluence editor to a format suitable for storage.


Constructor Summary
DefaultEditorConverter(Transformer storageConverter, HtmlToXmlConverter htmlToXmlConverter)
           
 
Method Summary
 String convert(String editorFormat, ConversionContext conversionContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEditorConverter

public DefaultEditorConverter(Transformer storageConverter,
                              HtmlToXmlConverter htmlToXmlConverter)
Method Detail

convert

public String convert(String editorFormat,
                      ConversionContext conversionContext)
               throws XhtmlParsingException,
                      XhtmlException
Specified by:
convert in interface EditorConverter
Parameters:
editorFormat - the editor formatted data to be converted.
conversionContext - the context for the conversion
Returns:
the converted data
Throws:
XhtmlParsingException - if there is a specific problem parsing the supplied editorFormat data
XhtmlException - for all other problems.


Copyright © 2003-2013 Atlassian. All Rights Reserved.