java.lang.Object
org.csveed.bean.BeanWriterImpl<T>
- Type Parameters:
T
- the generic type
- All Implemented Interfaces:
BeanWriter<T>
The Class BeanWriterImpl.
-
Constructor Summary
ConstructorDescriptionBeanWriterImpl
(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.void
Writes a single Bean to the table.void
writeBeans
(Collection<T> beans) Writes a collection of Beans to the table.void
Writes the header of a Bean type to the table.
-
Constructor Details
-
BeanWriterImpl
-
BeanWriterImpl
Instantiates a new bean writer impl.- Parameters:
writer
- the writerbeanInstructions
- the bean instructions
-
-
Method Details
-
writeBeans
Description copied from interface:BeanWriter
Writes a collection of Beans to the table.- Specified by:
writeBeans
in interfaceBeanWriter<T>
- Parameters:
beans
- beans to write to the table
-
writeBean
Description copied from interface:BeanWriter
Writes a single Bean to the table.- Specified by:
writeBean
in interfaceBeanWriter<T>
- Parameters:
bean
- bean to write to the table
-
writeHeader
public void writeHeader()Description copied from interface:BeanWriter
Writes the header of a Bean type to the table.- Specified by:
writeHeader
in interfaceBeanWriter<T>
-
getRowWriter
Description copied from interface:BeanWriter
Gets the row writer.- Specified by:
getRowWriter
in interfaceBeanWriter<T>
- Returns:
- the row writer
-