Package org.xwiki.rendering.parser
Interface StreamParser
-
@Role public interface StreamParserStreaming based parser. Instead of returning a resulting XDOM it send events during the parsing.- Since:
- 2.1M1
- Version:
- $Id: 2987423272113f4a7307b46d2fa694c9b9c28d05 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SyntaxgetSyntax()voidparse(Reader source, Listener listener)
-
-
-
Method Detail
-
getSyntax
Syntax getSyntax()
- Returns:
- the wiki syntax the parser is implementing
-
parse
void parse(Reader source, Listener listener) throws ParseException
- Parameters:
source- the content to parselistener- receive event for each element- 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.
-
-