public class SwebleWikipediaTextFilter extends Object implements TextMapFilter
Constructor and Description |
---|
SwebleWikipediaTextFilter() |
Modifier and Type | Method and Description |
---|---|
void |
enableMapping(boolean enable)
Set this to
false for better performance. |
PlainTextMapping |
filter(String wikiText)
Filter the given text, keeping a mapping from plain text to original markup positions.
|
public PlainTextMapping filter(String wikiText)
TextMapFilter
null
if mapping has been disabled for
performance reasons.filter
in interface TextMapFilter
public void enableMapping(boolean enable)
false
for better performance. The result of filter(String)
will then have a null
mapping.