|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TableReader
TableReader interface represents abstract table data reader.
| Method Summary | ||
|---|---|---|
void |
addConverter(Class<?> fromClass,
Class<?> toClass,
Converter converter)
Adds support for converting values from fromClass to
toClass. |
|
Converter |
getConverter(Class<?> fromClass,
Class<?> toClass)
Provides converter for given types. |
|
|
read(Mapping<T> mapping,
InputStream input)
Reads table data from given input stream. |
|
|
read(Mapping<T> mapping,
InputStream input,
int tableIndex)
Reads table data from given input stream. |
|
void |
setDateFormat(String dateFormat)
Sets used date format. |
|
void |
skip(int count)
Deprecated. use Mapping.setSkipRows(int) method |
|
| Method Detail |
|---|
<T> List<T> read(Mapping<T> mapping,
InputStream input)
throws TableException
T - type of table rowmapping - mapping for class and tableinput - input stream for table data
TableException - if cannot read data
<T> List<T> read(Mapping<T> mapping,
InputStream input,
int tableIndex)
throws TableException
T - type of table rowmapping - mapping for class and tableinput - input stream for table datatableIndex - index of table to be read (if input stream has more
then 1 table)
TableException - if cannot read data
@Deprecated
void skip(int count)
throws TableException
Mapping.setSkipRows(int) method
count.
count - data to be skipped
TableException - if cannot skip data
void addConverter(Class<?> fromClass,
Class<?> toClass,
Converter converter)
fromClass to
toClass.
fromClass - from classtoClass - to classconverter - converter
Converter getConverter(Class<?> fromClass,
Class<?> toClass)
throws TableException
fromClass - from classtoClass - to class
TableException - if desired converter does not existaddConverter(Class, Class, Converter)void setDateFormat(String dateFormat)
dateFormat - date formatSimpleDateFormat
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||