org.xwiki.rendering.parser
Interface StreamParser
@ComponentRole
public interface StreamParser
Streaming based parser. Instead of returning a resulting XDOM it send events during the parsing.
- Since:
- 2.1M1
- Version:
- $Id: 3a49e487c31197c27a7f5b89ce3996b17f6b0dd4 $
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.
Copyright © 2004-2011 XWiki. All Rights Reserved.