|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.specrunner.source.text.FeatureReaderImpl
public class FeatureReaderImpl
Basic implementation of reature reader.
| Field Summary | |
|---|---|
protected static ICache<String,Keywords> |
cacheKeywords
The keyword set. |
| Constructor Summary | |
|---|---|
FeatureReaderImpl()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static ICache<String,Keywords> cacheKeywords
| Constructor Detail |
|---|
public FeatureReaderImpl()
| Method Detail |
|---|
public Feature load(InputStream in,
String encoding)
throws IOException
IFeatureReader
load 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||