public class FeatureReaderImpl extends Object implements IFeatureReader
| Modifier and Type | Field and Description |
|---|---|
protected static ICache<String,Keywords> |
cacheKeywords
The keyword set.
|
| Constructor and Description |
|---|
FeatureReaderImpl() |
| Modifier and Type | Method and Description |
|---|---|
Feature |
load(InputStream in,
String encoding)
Read feature from load.
|
protected void |
readExamples(BufferedReader reader,
String line,
ScenarioOutline outline)
Read examples.
|
protected void |
readFeatureDescription(BufferedReader reader,
String line,
Keywords words,
Feature feature)
Read feature description.
|
protected void |
readKeyword(BufferedReader reader,
String line,
String keyword,
NamedSentences named)
Read a keyword.
|
protected String |
readNextGroup(BufferedReader reader,
String line,
List<Sentence> group)
Read next group.
|
protected String |
readTable(BufferedReader reader,
String line,
DataTable table)
Read a data table.
|
public Feature load(InputStream in, String encoding) throws IOException
IFeatureReaderload in interface IFeatureReaderin - The input stream.encoding - The encoding.IOException - On reading errors.protected void readKeyword(BufferedReader reader, String line, String keyword, NamedSentences named) throws IOException
reader - The input.line - Current line.keyword - The word.named - The description object.IOException - On reading error.protected void readFeatureDescription(BufferedReader reader, String line, Keywords words, Feature feature) throws IOException
reader - The reader.line - The line.words - The word map.feature - The feature.IOException - On reading error.protected String readNextGroup(BufferedReader reader, String line, List<Sentence> group) throws IOException
reader - The reader.line - The current line.group - The group to add lines.IOException - On reading errors.protected void readExamples(BufferedReader reader, String line, ScenarioOutline outline) throws IOException
reader - The reader.line - The input line.outline - The parent scenario.IOException - On reading errors.protected String readTable(BufferedReader reader, String line, DataTable table) throws IOException
reader - The reader.line - The current line.table - The target table.IOException - On reading errors.Copyright © 2017. All rights reserved.