|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SeparatedFileInteraction
Interaction
interface of the SeparatedFileService
.
Method Summary | |
---|---|
void |
closeReader(Object readerId)
Closes the reader. |
void |
closeWriter(Object writerId)
Closes the writer. |
Object |
createReader(String filePath,
Class<? extends SeparatedFileBeanData> beanClass,
char separator)
Creates a reader for reading JavaBeans. |
Object |
createWriter(String filePath,
boolean overwrite,
Class<? extends SeparatedFileBeanData> beanClass,
char separator,
String header)
Creates a writer for persisting SeparatedFileBeans or JavaBean data structures. |
void |
delete(String filePath)
Deletes a file. |
String |
readHeader(Object readerId)
Reads a header line from a separated file. |
SeparatedFileBeanData |
readRow(Object readerId)
Reads a separated 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(SeparatedFileBeanData bean,
Object writerId)
Writes an object as separated 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, Class<? extends SeparatedFileBeanData> beanClass, char separator, String header)
filePath
- the path of the file to writeoverwrite
- flag that indicates whether pre-existing files may be overwrittenbeanClass
- the type of the bean Objects to writeseparator
- the separator character to useheader
-
void writeRow(SeparatedFileBeanData bean, Object writerId)
bean
- a SeparatedFileBean to writewriterId
- the id of the writervoid closeWriter(Object writerId)
writerId
- the id of the writerObject createReader(String filePath, Class<? extends SeparatedFileBeanData> beanClass, char separator)
filePath
- the path of the file to readbeanClass
- the type of the bean Objects to writeseparator
- the separator character to use
String readHeader(Object readerId)
readerId
-
SeparatedFileBeanData 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 |