Class DefaultExternalHelpParser
- java.lang.Object
-
- com.github.rvesse.airline.help.external.parsers.defaults.DefaultExternalHelpParser
-
- All Implemented Interfaces:
ParagraphsParser
,TabularParser
- Direct Known Subclasses:
TabDelimitedHelpParser
public class DefaultExternalHelpParser extends Object implements ParagraphsParser, TabularParser
Default external help parser
-
-
Constructor Summary
Constructors Constructor Description DefaultExternalHelpParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.commons.csv.CSVFormat
getTabularFormat()
Gets the tabular format in use for parsing tabular dataString[]
parseParagraphs(String resource, InputStream input)
Parses input into a series of paragraphsList<List<String>>
parseRows(String resource, InputStream input)
Parsers a list of rows from a resource
-
-
-
Method Detail
-
parseParagraphs
public String[] parseParagraphs(String resource, InputStream input)
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
public List<List<String>> parseRows(String resource, InputStream input)
Description copied from interface:TabularParser
Parsers a list of rows from a resource- Specified by:
parseRows
in interfaceTabularParser
- Returns:
- List of rows
-
-