|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aludratest.service.file.FileStream<R> org.aludratest.service.separatedfile.SeparatedFileReader<B,R>
R
- the generic type to return as 'this'B
- public abstract class SeparatedFileReader<B extends SeparatedFileBeanData,R extends SeparatedFileReader<B,R>>
Parses separated files and provides each line as a Java object.
Field Summary |
---|
Fields inherited from class org.aludratest.service.file.FileStream |
---|
elementType, filePath, fileService |
Constructor Summary | |
---|---|
SeparatedFileReader(String filePath,
SeparatedFileService service,
Class<? extends SeparatedFileBeanData> beanClass,
char separator)
Constructor. |
Method Summary | |
---|---|
R |
close()
Closes the reader |
protected R |
readHeader(StringData result)
|
protected R |
readRow(WrappedSeparatedData<B> data)
Reads a single row from the separated file and maps it to a Java object instance. |
String |
toString()
Creates a string representation of the reader. |
R |
verifyState()
Verifies the state. |
Methods inherited from class org.aludratest.service.file.FileStream |
---|
delete, waitUntilExists, waitUntilNotExists |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SeparatedFileReader(String filePath, SeparatedFileService service, Class<? extends SeparatedFileBeanData> beanClass, char separator)
filePath
- the file path of the resource from which to read the formatted file contentservice
- The SeparatedFileService
which will take control of the readerbeanClass
- separator
- Method Detail |
---|
protected R readRow(WrappedSeparatedData<B> data)
data
- a SeparatedFileBean holding the parsed data of the separated file row
protected R readHeader(StringData result)
public R close()
public R verifyState()
ActionWordLibrary
GUIInteraction.wrongPageFlow(String)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |