info.bliki.wiki.filter
Interface ITextConverter

All Known Implementing Classes:
HTMLConverter, PDFConverter, PlainTextConverter

public interface ITextConverter

Interface for converters which renders the internal node representation into a string representation


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
 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.
 

Method Detail

nodesToText

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

Parameters:
nodes - list of TagToken
resultBuffer - the rendered HTML string
model - the current wiki model
Throws:
java.io.IOException

imageNodeToText

void imageNodeToText(TagNode imageTagNode,
                     ImageFormat imageFormat,
                     java.lang.Appendable resultBuffer,
                     IWikiModel model)
                     throws java.io.IOException
Convert the imageTagNode into a given HTML string buffer

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

noLinks

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.

Returns:


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