info.bliki.wiki.filter
Class HTMLConverter

java.lang.Object
  extended by info.bliki.wiki.filter.HTMLConverter
All Implemented Interfaces:
ITextConverter
Direct Known Subclasses:
PDFConverter

public class HTMLConverter
extends java.lang.Object
implements ITextConverter

A converter which renders the internal tree node representation as HTML text


Constructor Summary
HTMLConverter()
           
HTMLConverter(boolean noLinks)
           
 
Method Summary
 void imageNodeToText(TagNode imageTagNode, ImageFormat imageFormat, java.lang.Appendable resultBuffer, IWikiModel model)
          Convert the imageTagNode into a given HTML string buffer
 void nodesToText(java.util.List<? extends java.lang.Object> nodes, java.lang.Appendable resultBuffer, IWikiModel model)
          Convert the list of TagTokens into a given HTML string buffer
protected  void nodeToHTML(TagNode node, java.lang.Appendable resultBuffer, IWikiModel model)
           
 boolean noLinks()
          If this method returns true, then the <a> tag should only render the title of the link and not a link to another HTML document, but only the link text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLConverter

public HTMLConverter(boolean noLinks)

HTMLConverter

public HTMLConverter()
Method Detail

nodesToText

public void nodesToText(java.util.List<? extends java.lang.Object> nodes,
                        java.lang.Appendable resultBuffer,
                        IWikiModel model)
                 throws java.io.IOException
Description copied from interface: ITextConverter
Convert the list of TagTokens into a given HTML string buffer

Specified by:
nodesToText in interface ITextConverter
Parameters:
nodes - list of TagToken
resultBuffer - the rendered HTML string
model - the current wiki model
Throws:
java.io.IOException

nodeToHTML

protected void nodeToHTML(TagNode node,
                          java.lang.Appendable resultBuffer,
                          IWikiModel model)
                   throws java.io.IOException
Throws:
java.io.IOException

imageNodeToText

public void imageNodeToText(TagNode imageTagNode,
                            ImageFormat imageFormat,
                            java.lang.Appendable resultBuffer,
                            IWikiModel model)
                     throws java.io.IOException
Description copied from interface: ITextConverter
Convert the imageTagNode into a given HTML string buffer

Specified by:
imageNodeToText in interface ITextConverter
Parameters:
imageTagNode - the tag which carries the imageFormat wiki object as an object attribute
resultBuffer - the rendered HTML string
model - the current wiki model
Throws:
java.io.IOException

noLinks

public boolean noLinks()
Description copied from interface: ITextConverter
If this method returns true, then the <a> tag should only render the title of the link and not a link to another HTML document, but only the link text.

Specified by:
noLinks in interface ITextConverter
Returns:


Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.