|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aludratest.content.separated.webdecs.WebdecsSeparatedContent
public class WebdecsSeparatedContent
Webdecs-based content handler for separated files
Constructor Summary | |
---|---|
WebdecsSeparatedContent()
Constructor. |
Method Summary | ||
---|---|---|
void |
closeReader(Object readerId)
Closes a reader. |
|
void |
closeWriter(Object writerId)
Closes the writer and returns its content as string. |
|
|
createReader(Reader source,
Class<T> rowType,
char separator)
Creates a reader object for reading JavaBeans. |
|
Object |
createWriter(Writer out,
Class<? extends SeparatedFileBeanData> beanClass,
char separator,
String header)
Creates a writer for persisting SeparatedFileBeans or JavaBean data structures. |
|
String |
readHeader(Object readerId)
Reads a file header row. |
|
SeparatedFileBeanData |
readRow(Object readerId)
Reads a separated file row and provides it as Java object. |
|
void |
writeRow(SeparatedFileBeanData rowBean,
Object writerId)
Appends a row to the separated file writer denoted by the writerId. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebdecsSeparatedContent()
Method Detail |
---|
public Object createWriter(Writer out, Class<? extends SeparatedFileBeanData> beanClass, char separator, String header)
createWriter
in interface SeparatedContent
out
- the writer to use for persisting the separated file contentseparator
- beanClass
- header
-
public void writeRow(SeparatedFileBeanData rowBean, Object writerId)
writeRow
in interface SeparatedContent
rowBean
- the SeparatedFileBean holding the datawriterId
- the id of the writer with which to store the formatted textpublic void closeWriter(Object writerId)
closeWriter
in interface SeparatedContent
writerId
- the id of the writer to closepublic <T extends SeparatedFileBeanData> Object createReader(Reader source, Class<T> rowType, char separator)
createReader
in interface SeparatedContent
source
- the source reader that provides the separated file's character data
public String readHeader(Object readerId)
SeparatedContent
readHeader
in interface SeparatedContent
public SeparatedFileBeanData readRow(Object readerId)
readRow
in interface SeparatedContent
readerId
- the id of the reader
public void closeReader(Object readerId)
closeReader
in interface SeparatedContent
readerId
- the id of the reader to close
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |