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.CSVFormatgetTabularFormat()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:ParagraphsParserParses input into a series of paragraphs- Specified by:
parseParagraphsin 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:TabularParserParsers a list of rows from a resource- Specified by:
parseRowsin interfaceTabularParser- Returns:
- List of rows
-
-