org.xwiki.rendering.internal.renderer.xwiki20
Class XWikiSyntaxEscapeWikiPrinter
java.lang.Object
org.xwiki.rendering.renderer.printer.WrappingWikiPrinter
org.xwiki.rendering.renderer.printer.LookaheadWikiPrinter
org.xwiki.rendering.internal.renderer.xwiki20.XWikiSyntaxEscapeWikiPrinter
- All Implemented Interfaces:
- WikiPrinter
public class XWikiSyntaxEscapeWikiPrinter
- extends LookaheadWikiPrinter
A Wiki printer that knows how to escape characters that would otherwise mean something different in XWiki wiki
syntax. For example if we have "**" as special symbols (and not as a Bold Format block) we need to escape them to
"~*~*" as otherwise they'd be considered bold after being rendered.
- Since:
- 1.7
- Version:
- $Id$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XWikiSyntaxEscapeWikiPrinter
public XWikiSyntaxEscapeWikiPrinter(WikiPrinter printer,
XWikiSyntaxListenerChain listenerChain)
getEscapeHandler
public XWikiSyntaxEscapeHandler getEscapeHandler()
printInternal
protected void printInternal(java.lang.String text)
-
- Overrides:
printInternal in class LookaheadWikiPrinter
- See Also:
LookaheadWikiPrinter.printInternal(java.lang.String)
printlnInternal
protected void printlnInternal(java.lang.String text)
-
- Overrides:
printlnInternal in class LookaheadWikiPrinter
- See Also:
LookaheadWikiPrinter.println(java.lang.String)
flush
public void flush()
-
- Overrides:
flush in class LookaheadWikiPrinter
- See Also:
LookaheadWikiPrinter.flush()
printBeginBold
public void printBeginBold()
setEscapeLastChar
public void setEscapeLastChar(boolean escapeLastChar)
setBeforeLink
public void setBeforeLink(boolean beforeLink)
setOnNewLine
public void setOnNewLine(boolean onNewLine)
isOnNewLine
public boolean isOnNewLine()
isAfterWhiteSpace
public boolean isAfterWhiteSpace()
getLastPrinted
public java.lang.String getLastPrinted()
printBeginItalic
public void printBeginItalic()
printEndItalic
public void printEndItalic()
printInlineMacro
public void printInlineMacro(java.lang.String xwikiSyntaxText)
printVerbatimContent
public void printVerbatimContent(java.lang.String verbatimContent)
Copyright © 2004-2011 XWiki. All Rights Reserved.