|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.content.render.xhtml.editor.EditorXhtmlTransformer
public class EditorXhtmlTransformer
Transformer editor formatted XHTML to storage format XHTML. Note that the editor cannot be relied on to provide valid XHTML and therefore
you will need to run the editor data through some kind of cleaner such as the HtmlToXmlConverter
to ensure that this transformer
is handling XHTML.
Constructor Summary | |
---|---|
EditorXhtmlTransformer(XmlEventReaderFactory xmlEventReaderFactory,
FragmentTransformer defaultFragmentTransformer)
|
Method Summary | |
---|---|
java.lang.String |
transform(java.io.Reader editorFormatXml,
ConversionContext conversionContext)
Begin consuming events from the supplied Reader, ignore all elements until the body is encountered, at which point the fragment transformation begins. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditorXhtmlTransformer(XmlEventReaderFactory xmlEventReaderFactory, FragmentTransformer defaultFragmentTransformer)
Method Detail |
---|
public java.lang.String transform(java.io.Reader editorFormatXml, ConversionContext conversionContext) throws XhtmlException
transform
in interface Transformer
XhtmlParsingException
- if there is an error parsing the supplied editorFormat XHTML.
XhtmlException
- for all other transform errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |