|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FlatFileInteraction
Interaction
interface of the FlatFileService
.
Method Summary | |
---|---|
void |
addRowType(RowTypeData rowType,
Object readerId)
Adds a RowType to a BeanFlatFileReader. |
void |
closeReader(Object readerId)
Closes the reader. |
void |
closeWriter(Object writerId)
Closes the writer. |
Object |
createReader(String filePath)
Creates a reader for reading JavaBeans. |
Object |
createWriter(String filePath,
boolean overwrite)
Creates a writer for persisting FlatFileBeans or JavaBean data structures. |
void |
delete(String filePath)
Deletes a file. |
FlatFileBeanData |
readRow(Object readerId)
Reads a flat file row and provides it as Java object. |
void |
waitUntilExists(String elementType,
String filePath)
Polls the file system until a file at the given path is found or a timeout occurs. |
void |
waitUntilNotExists(String filePath)
Polls the file system until no file is found at the given path. |
void |
writeRow(Object bean,
Object writerId)
Writes an object as flat file row. |
Methods inherited from interface org.aludratest.service.Action |
---|
createAttachments, createDebugAttachments, setSystemConnector |
Method Detail |
---|
void waitUntilExists(String elementType, String filePath)
elementType
- filePath
- the full path of the requested filevoid waitUntilNotExists(String filePath)
filePath
- void delete(String filePath)
filePath
- the path of the file to deleteObject createWriter(String filePath, boolean overwrite)
filePath
- the path of the file to writeoverwrite
- flag that indicates whether pre-existing files may be overwritten
void writeRow(Object bean, Object writerId)
bean
- a FlatFileBean to writewriterId
- the id of the writervoid closeWriter(Object writerId)
writerId
- the id of the writerObject createReader(String filePath)
filePath
- the path of the file to read
void addRowType(RowTypeData rowType, Object readerId)
rowType
- a RowTypeData
to be applied by the flat file readerreaderId
- the id of the readerFlatFileBeanData readRow(Object readerId)
readerId
- the id of the reader
void closeReader(Object readerId)
readerId
- the id of the reader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |