Class DefaultExternalHelpParser
java.lang.Object
com.github.rvesse.airline.help.external.parsers.defaults.DefaultExternalHelpParser
- All Implemented Interfaces:
ParagraphsParser
,TabularParser
- Direct Known Subclasses:
TabDelimitedHelpParser
Default external help parser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.commons.csv.CSVFormat
Gets the tabular format in use for parsing tabular dataString[]
parseParagraphs
(String resource, InputStream input) Parses input into a series of paragraphsparseRows
(String resource, InputStream input) Parsers a list of rows from a resource
-
Constructor Details
-
DefaultExternalHelpParser
public DefaultExternalHelpParser()
-
-
Method Details
-
parseParagraphs
Description copied from interface:ParagraphsParser
Parses input into a series of paragraphs- Specified by:
parseParagraphs
in interfaceParagraphsParser
- Parameters:
resource
- Resource nameinput
- Input- Returns:
- Paragraphs
-
getTabularFormat
protected org.apache.commons.csv.CSVFormat getTabularFormat()Gets the tabular format in use for parsing tabular data- Returns:
- Tabular Format
-
parseRows
Description copied from interface:TabularParser
Parsers a list of rows from a resource- Specified by:
parseRows
in interfaceTabularParser
- Returns:
- List of rows
-