|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aludratest.service.file.FileStream<FlatFileReader<E>> org.aludratest.service.flatfile.FlatFileReader<E>
E
- the generic type to return as 'this'public abstract class FlatFileReader<E>
Parses flat 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 | |
---|---|
FlatFileReader(String filePath,
FlatFileService service)
Constructor. |
Method Summary | |
---|---|
FlatFileReader<E> |
addRowType(RowTypeData rowType)
Adds a RowTypeData to the reader. |
FlatFileReader<E> |
close()
Closes the reader |
FlatFileReader<E> |
readRow(WrappedRowData result)
Reads a single row from the flat file and maps it to a Java object instance. |
String |
toString()
Creates a string representation of the reader. |
FlatFileReader<E> |
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 FlatFileReader(String filePath, FlatFileService service)
filePath
- the file path of the resource from which to read the formatted file contentservice
- The FlatFileService
which will take control of the readerMethod Detail |
---|
public FlatFileReader<E> addRowType(RowTypeData rowType)
RowTypeData
to the reader.
rowType
- a RowTypeData
that recognizes one or more record types of the underlying flat file format
public FlatFileReader<E> readRow(WrappedRowData result)
result
- a FlatFileBean holding the parsed data of the flat file row
public FlatFileReader<E> close()
public final FlatFileReader<E> 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 |