public class TablesExtension extends Object implements Parser.ParserExtension, HtmlRenderer.HtmlRendererExtension, Formatter.FormatterExtension
Create it with create() and then configure it on the builders
(Parser.Builder.extensions(Iterable),
HtmlRenderer.Builder.extensions(Iterable)).
The parsed tables are turned into TableBlock blocks.
| Modifier and Type | Field and Description |
|---|---|
static DataKey<Boolean> |
APPEND_MISSING_COLUMNS |
static DataKey<String> |
CLASS_NAME |
static DataKey<Boolean> |
COLUMN_SPANS |
static DataKey<Boolean> |
DISCARD_EXTRA_COLUMNS |
static DataKey<Boolean> |
FORMAT_ADJUST_COLUMN_WIDTH |
static DataKey<Boolean> |
FORMAT_APPLY_COLUMN_ALIGNMENT |
static DataKey<Boolean> |
FORMAT_DELETE_EMPTY_COLUMNS |
static DataKey<Boolean> |
FORMAT_DELETE_EMPTY_ROWS |
static DataKey<Boolean> |
FORMAT_FILL_MISSING_COLUMNS |
static DataKey<Boolean> |
FORMAT_LEAD_TRAIL_PIPES |
static DataKey<DiscretionaryText> |
FORMAT_LEFT_ALIGN_MARKER |
static DataKey<Boolean> |
FORMAT_REMOVE_CAPTION |
static DataKey<Boolean> |
FORMAT_SPACE_AROUND_PIPE |
static DataKey<Boolean> |
FORMAT_TRIM_CELLS |
static DataKey<Boolean> |
HEADER_SEPARATOR_COLUMN_MATCH |
static DataKey<Integer> |
MAX_HEADER_ROWS |
static DataKey<Integer> |
MIN_HEADER_ROWS |
static DataKey<Boolean> |
TRIM_CELL_WHITESPACE |
static DataKey<Boolean> |
WITH_CAPTION |
EMPTY_LIST, EMPTY_SET| Constructor and Description |
|---|
TablesExtension() |
| Modifier and Type | Method and Description |
|---|---|
static Extension |
create() |
void |
extend(Formatter.Builder builder) |
void |
extend(HtmlRenderer.Builder rendererBuilder,
String rendererType) |
void |
extend(Parser.Builder parserBuilder) |
void |
parserOptions(MutableDataHolder options) |
void |
rendererOptions(MutableDataHolder options) |
public static final DataKey<DiscretionaryText> FORMAT_LEFT_ALIGN_MARKER
public static Extension create()
public void extend(Formatter.Builder builder)
extend in interface Formatter.FormatterExtensionpublic void rendererOptions(MutableDataHolder options)
rendererOptions in interface Formatter.FormatterExtensionrendererOptions in interface HtmlRenderer.HtmlRendererExtensionpublic void parserOptions(MutableDataHolder options)
parserOptions in interface Parser.ParserExtensionpublic void extend(Parser.Builder parserBuilder)
extend in interface Parser.ParserExtensionpublic void extend(HtmlRenderer.Builder rendererBuilder, String rendererType)
extend in interface HtmlRenderer.HtmlRendererExtensionCopyright © 2017. All rights reserved.