public class TableBlockParser extends java.lang.Object implements BlockParser
| Modifier and Type | Field and Description |
|---|---|
private static java.util.regex.Pattern |
TABLE_PATTERN
pattern to detect tables
|
private FormatedTextParser |
textParser
text parser
|
| Constructor and Description |
|---|
TableBlockParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.lang.String line)
accept.
|
void |
setTextParser(FormatedTextParser textParser)
Setter for the field
textParser. |
Block |
visit(java.lang.String line,
ByLineSource source)
visit.
|
private static final java.util.regex.Pattern TABLE_PATTERN
private FormatedTextParser textParser
public final boolean accept(java.lang.String line)
accept.
accept in interface BlockParserline - text linetrue if this class can handle this linepublic final Block visit(java.lang.String line, ByLineSource source) throws ParseException
visit.
visit in interface BlockParserline - a line of textsource - the source of linesParseException - on errorpublic final void setTextParser(FormatedTextParser textParser)
Setter for the field textParser.
textParser - text parser to be set