|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rendering.internal.parser.PlainTextStreamParser
@Component @Named(value="plain/1.0") @Singleton public class PlainTextStreamParser
Plain Text Parser to convert a text source into a events.
| Field Summary | |
|---|---|
static java.util.regex.Pattern |
SPECIALSYMBOL_PATTERN
The characters which are considered as "special" symbols for SpecialSymbolBlock
. |
| Constructor Summary | |
|---|---|
PlainTextStreamParser()
|
|
| Method Summary | |
|---|---|
Syntax |
getSyntax()
|
void |
parse(java.io.Reader source,
Listener listener)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.regex.Pattern SPECIALSYMBOL_PATTERN
SpecialSymbolBlock
.
| Constructor Detail |
|---|
public PlainTextStreamParser()
| Method Detail |
|---|
public Syntax getSyntax()
getSyntax in interface StreamParserParser.getSyntax()
public void parse(java.io.Reader source,
Listener listener)
throws ParseException
parse in interface StreamParsersource - the content to parselistener - receive event for each element
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.StreamParser.parse(java.io.Reader, org.xwiki.rendering.listener.Listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||