java.lang.Object
org.csveed.bean.BeanWriterImpl<T>
- Type Parameters:
T- the generic type
- All Implemented Interfaces:
BeanWriter<T>
The Class BeanWriterImpl.
-
Constructor Summary
ConstructorsConstructorDescriptionBeanWriterImpl(Writer writer, Class<T> beanClass) Instantiates a new bean writer impl.BeanWriterImpl(Writer writer, BeanInstructions beanInstructions) Instantiates a new bean writer impl. -
Method Summary
Modifier and TypeMethodDescriptionGets the row writer.voidWrites a single Bean to the table.voidwriteBeans(Collection<T> beans) Writes a collection of Beans to the table.voidWrites the header of a Bean type to the table.
-
Constructor Details
-
BeanWriterImpl
Instantiates a new bean writer impl.- Parameters:
writer- the writerbeanClass- the bean class
-
BeanWriterImpl
Instantiates a new bean writer impl.- Parameters:
writer- the writerbeanInstructions- the bean instructions
-
-
Method Details
-
writeBeans
Description copied from interface:BeanWriterWrites a collection of Beans to the table.- Specified by:
writeBeansin interfaceBeanWriter<T>- Parameters:
beans- beans to write to the table
-
writeBean
Description copied from interface:BeanWriterWrites a single Bean to the table.- Specified by:
writeBeanin interfaceBeanWriter<T>- Parameters:
bean- bean to write to the table
-
writeHeader
public void writeHeader()Description copied from interface:BeanWriterWrites the header of a Bean type to the table.- Specified by:
writeHeaderin interfaceBeanWriter<T>
-
getRowWriter
Description copied from interface:BeanWriterGets the row writer.- Specified by:
getRowWriterin interfaceBeanWriter<T>- Returns:
- the row writer
-