info.bliki.wiki.tags
Class NowikiTag

java.lang.Object
  extended by org.htmlcleaner.TagToken
      extended by org.htmlcleaner.TagNode
          extended by info.bliki.wiki.tags.HTMLTag
              extended by info.bliki.wiki.tags.NowikiTag
All Implemented Interfaces:
IBodyTag, INoBodyParsingTag, java.lang.Cloneable, BaseToken
Direct Known Subclasses:
MathTag

public class NowikiTag
extends HTMLTag
implements INoBodyParsingTag

Wiki tag for escaping the wiki syntax.


Field Summary
 
Fields inherited from class info.bliki.wiki.tags.HTMLTag
NEW_LINES
 
Constructor Summary
NowikiTag()
           
 
Method Summary
static void copyMathLTGT(java.lang.String text, java.lang.Appendable writer)
          Copy the text in the resulting buffer and escape special html characters (< > )
static void copyNowikiNewLine(java.lang.String text, java.lang.StringBuffer writer)
          Copy the text in the resulting buffer and escape special html characters (< > " & ') Additionally every newline will be replaced by <br/>
static void copyPre(java.lang.String text, java.lang.Appendable writer, boolean replaceAmpersand)
          Copy the text in the resulting buffer and escape special html characters (< > " & ')
 boolean isReduceTokenStack()
           
 void renderHTML(ITextConverter converter, java.lang.Appendable buf, IWikiModel model)
           
 void renderLaTeX(ITextConverter converter, java.lang.Appendable _out, IWikiModel model)
           
 
Methods inherited from class info.bliki.wiki.tags.HTMLTag
appendAttributes, appendEscapedAttributes, appendUnescapedAttributes, getBodyString, renderHTMLWithoutTag, setTemplate
 
Methods inherited from class org.htmlcleaner.TagNode
addAttribute, addChild, addChildren, addItemForMoving, addObjectAttribute, clone, getAttributes, getChildren, getItemsToMove, getObjectAttributes, getParent, getParents, isFormed, makeCopy, serialize, setFormed, setItemsToMove, setParent
 
Methods inherited from class org.htmlcleaner.TagToken
equals, getName, getOriginalSource, hashCode, setName, setOriginalSource, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NowikiTag

public NowikiTag()
Method Detail

copyNowikiNewLine

public static void copyNowikiNewLine(java.lang.String text,
                                     java.lang.StringBuffer writer)
Copy the text in the resulting buffer and escape special html characters (< > " & ') Additionally every newline will be replaced by <br/>


copyPre

public static void copyPre(java.lang.String text,
                           java.lang.Appendable writer,
                           boolean replaceAmpersand)
                    throws java.io.IOException
Copy the text in the resulting buffer and escape special html characters (< > " & ')

Parameters:
replaceAmpersand - replace the ampersand character with the HTML number entity
Throws:
java.io.IOException

copyMathLTGT

public static void copyMathLTGT(java.lang.String text,
                                java.lang.Appendable writer)
                         throws java.io.IOException
Copy the text in the resulting buffer and escape special html characters (< > )

Throws:
java.io.IOException

renderHTML

public void renderHTML(ITextConverter converter,
                       java.lang.Appendable buf,
                       IWikiModel model)
                throws java.io.IOException
Overrides:
renderHTML in class HTMLTag
Throws:
java.io.IOException

renderLaTeX

public void renderLaTeX(ITextConverter converter,
                        java.lang.Appendable _out,
                        IWikiModel model)
                 throws java.io.IOException
Overrides:
renderLaTeX in class HTMLTag
Throws:
java.io.IOException

isReduceTokenStack

public boolean isReduceTokenStack()
Overrides:
isReduceTokenStack in class TagToken