Class BeanWriterImpl<T>

java.lang.Object
org.csveed.bean.BeanWriterImpl<T>
Type Parameters:
T - the generic type
All Implemented Interfaces:
BeanWriter<T>

public class BeanWriterImpl<T> extends Object implements BeanWriter<T>
The Class BeanWriterImpl.
  • Constructor Details

    • BeanWriterImpl

      public BeanWriterImpl(Writer writer, Class<T> beanClass)
      Instantiates a new bean writer impl.
      Parameters:
      writer - the writer
      beanClass - the bean class
    • BeanWriterImpl

      public BeanWriterImpl(Writer writer, BeanInstructions beanInstructions)
      Instantiates a new bean writer impl.
      Parameters:
      writer - the writer
      beanInstructions - the bean instructions
  • Method Details

    • writeBeans

      public void writeBeans(Collection<T> beans)
      Description copied from interface: BeanWriter
      Writes a collection of Beans to the table.
      Specified by:
      writeBeans in interface BeanWriter<T>
      Parameters:
      beans - beans to write to the table
    • writeBean

      public void writeBean(T bean)
      Description copied from interface: BeanWriter
      Writes a single Bean to the table.
      Specified by:
      writeBean in interface BeanWriter<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 interface BeanWriter<T>
    • getRowWriter

      public RowWriter getRowWriter()
      Description copied from interface: BeanWriter
      Gets the row writer.
      Specified by:
      getRowWriter in interface BeanWriter<T>
      Returns:
      the row writer