public class DelimitedLineAggregator<T> extends ExtractorLineAggregator<T>
LineAggregator
implementation that converts an object into a
delimited list of strings. The default delimiter is a comma.Constructor and Description |
---|
DelimitedLineAggregator() |
Modifier and Type | Method and Description |
---|---|
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.
|
aggregate, setFieldExtractor
public void setDelimiter(java.lang.String delimiter)
delimiter
- the delimiter to setpublic java.lang.String doAggregate(java.lang.Object[] fields)
ExtractorLineAggregator
doAggregate
in class ExtractorLineAggregator<T>
fields
- An array of the fields that must be aggregated