T
- Type of object that is being processed.StatefulBeanToCsv
.@Deprecated public class BeanToCsv<T> extends Object
Constructor and Description |
---|
BeanToCsv()
Deprecated.
All methods in this class are static. Simply use them that way.
|
Modifier and Type | Method and Description |
---|---|
protected static <T> String[] |
processHeader(MappingStrategy<T> mapper)
Deprecated.
Processes the header for the bean.
|
protected static <T> String[] |
processObject(List<Method> getters,
T bean)
Deprecated.
Retrieve all the information out of an object.
|
static <T> boolean |
write(MappingStrategy<T> mapper,
CSVWriter csv,
List<? extends T> objects)
Deprecated.
Writes all the objects, one at a time, to the CSVWriter using the passed
in Strategy.
|
static <T> boolean |
write(MappingStrategy<T> mapper,
CSVWriter csv,
T bean,
boolean writeHeader)
Deprecated.
Writes an single object allowing users to write large number of objects without worrying about
a large collection filling up memory.
|
static <T> boolean |
write(MappingStrategy<T> mapper,
Writer writer,
List<? extends T> objects)
Deprecated.
Writes all the objects, one at a time, to a created
Writer using the passed in strategy. |
public BeanToCsv()
public static <T> boolean write(MappingStrategy<T> mapper, Writer writer, List<? extends T> objects)
Writer
using the passed in strategy.T
- Type of object that is being processed.mapper
- Mapping strategy for the bean.writer
- Writer object used to construct the CSVWriter.objects
- List of objects to write.public static <T> boolean write(MappingStrategy<T> mapper, CSVWriter csv, T bean, boolean writeHeader)
T
- Type of object that is being processed.mapper
- Mapping Strategy for the beancsv
- CSVWriterbean
- Object to be written.writeHeader
- If the header needs to be written or not.public static <T> boolean write(MappingStrategy<T> mapper, CSVWriter csv, List<? extends T> objects)
T
- Type of object that is being processed.mapper
- Mapping strategy for the bean.csv
- CSVWriterobjects
- List of objects to write.protected static <T> String[] processHeader(MappingStrategy<T> mapper) throws IntrospectionException
T
- Type of object that is being processed.mapper
- MappingStrategy for the beanIntrospectionException
- Thrown if there is a failure in introspection.protected static <T> String[] processObject(List<Method> getters, T bean) throws IntrospectionException, IllegalAccessException, InvocationTargetException
T
- Type of the bean to be writtengetters
- List of methods to retrieve information.bean
- Object to get the information from.IntrospectionException
- Thrown by error in introspection.IllegalAccessException
- Thrown by error in introspection.InvocationTargetException
- Thrown by error in introspection.Copyright © 2017. All rights reserved.