Class XhtmlParser
- java.lang.Object
-
- org.xwiki.rendering.wikimodel.xhtml.XhtmlParser
-
- All Implemented Interfaces:
IWikiParser
public class XhtmlParser extends Object implements IWikiParser
- Since:
- 4.0M1
- Version:
- $Id: 287338235ccf04f91d0be1d8c4c87d37a82fdfef $
-
-
Constructor Summary
Constructors Constructor Description XhtmlParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultHandler
getHandler(IWemListener listener)
boolean
isNamespacesEnabled()
void
parse(Reader reader, IWemListener listener)
void
setCommentHandler(CommentHandler commentHandler)
void
setExtraHandlers(Map<String,TagHandler> extraHandlers)
void
setNamespacesEnabled(boolean namespacesEnabled)
void
setXmlReader(XMLReader xmlReader)
-
-
-
Method Detail
-
isNamespacesEnabled
public boolean isNamespacesEnabled()
-
setNamespacesEnabled
public void setNamespacesEnabled(boolean namespacesEnabled)
-
setExtraHandlers
public void setExtraHandlers(Map<String,TagHandler> extraHandlers)
-
setCommentHandler
public void setCommentHandler(CommentHandler commentHandler)
-
setXmlReader
public void setXmlReader(XMLReader xmlReader)
-
getHandler
public DefaultHandler getHandler(IWemListener listener)
- Parameters:
listener
- the listener object wich will be used to report about all structural elements on the wiki page.- Returns:
- a XHTML SAX handler wich can be used to generate well-formed sequence of WEM events; all events will be reported to the given listener object.
-
parse
public void parse(Reader reader, IWemListener listener) throws WikiParserException
- Specified by:
parse
in interfaceIWikiParser
- Throws:
WikiParserException
- See Also:
IWikiParser.parse(java.io.Reader, org.xwiki.rendering.wikimodel.IWemListener)
-
-