Package org.xwiki.rendering.parser
Interface Parser
-
@Role public interface ParserParse content into a XDOM (a tree ofBlocks).- Since:
- 1.5M2
- Version:
- $Id: 8b8ffd30b76240d93037232013281832fc0674a8 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SyntaxgetSyntax()XDOMparse(Reader source)
-
-
-
Method Detail
-
getSyntax
Syntax getSyntax()
- Returns:
- the syntax the parser is implementing
-
parse
XDOM parse(Reader source) throws ParseException
- Parameters:
source- the content to parse- Returns:
- the tree representation of the content as
Blocks - Throws:
ParseException- if the source cannot be read or an unexpected error happens during the parsing. Parsers should be written to not generate any error as much as possible.
-
-