public class AsciiDocParser extends Object
Constructor and Description |
---|
AsciiDocParser() |
Modifier and Type | Method and Description |
---|---|
Map<String,List<String>> |
serializeKindFilenameTable(InputStream table)
This method serializes the content of an AsciiDoc table used to set the mapping between kinds and filenames.
|
public Map<String,List<String>> serializeKindFilenameTable(InputStream table)
[cols=2*,options="header"] |=== |Kind |File type a|ConfigMap a|`cm` |CronJob |cronjob |===Basically the table contains an optional attributes section (@code{[]}), then the headers of the columns. Between line breaks, both columns representing the kind (first column) and filename (second column). Notice that one-line columns definition @code{|Cell in column 1, row 1|Cell in column 1, row 1} is not supported. This method returns an @code{IllegalArgumentException} if does not contain two columns.
table
- definition in AsciiDoc format.Copyright © 2021. All rights reserved.