类 DelimitedLineAggregator<T>
- java.lang.Object
- org.springframework.batch.item.file.transform.ExtractorLineAggregator<T>
- org.springframework.batch.item.file.transform.DelimitedLineAggregator<T>
- 所有已实现的接口:
LineAggregator<T>
public class DelimitedLineAggregator<T> extends ExtractorLineAggregator<T>
ALineAggregator
implementation that converts an object into a delimited list of strings. The default delimiter is a comma.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 DelimitedLineAggregator()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.String
doAggregate(java.lang.Object[] fields)
Aggregate provided fields into single String.void
setDelimiter(java.lang.String delimiter)
Public setter for the delimiter.从类继承的方法 org.springframework.batch.item.file.transform.ExtractorLineAggregator
aggregate, setFieldExtractor
构造器详细资料
DelimitedLineAggregator
public DelimitedLineAggregator()
方法详细资料
setDelimiter
public void setDelimiter(java.lang.String delimiter)
Public setter for the delimiter.- 参数:
delimiter
- the delimiter to set
doAggregate
public java.lang.String doAggregate(java.lang.Object[] fields)
从类复制的说明:ExtractorLineAggregator
Aggregate provided fields into single String.- 指定者:
doAggregate
在类中ExtractorLineAggregator<T>
- 参数:
fields
- An array of the fields that must be aggregated- 返回:
- aggregated string