info.bliki.wiki.filter
Class PlainTextConverter

java.lang.Object
  extended by info.bliki.wiki.filter.PlainTextConverter
All Implemented Interfaces:
ITextConverter

public class PlainTextConverter
extends java.lang.Object
implements ITextConverter

A converter which renders the internal tree node representation as plain text without HTML tags and images


Constructor Summary
PlainTextConverter()
           
PlainTextConverter(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
 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

PlainTextConverter

public PlainTextConverter(boolean noLinks)

PlainTextConverter

public PlainTextConverter()
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

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:

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


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