public class FormatterLineAggregator<T> extends ExtractorLineAggregator<T>
LineAggregator implementation which produces a String by
aggregating the provided item via the Formatter syntax.Formatter| Constructor and Description |
|---|
FormatterLineAggregator() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
doAggregate(java.lang.Object[] fields)
Aggregate provided fields into single String.
|
void |
setFormat(java.lang.String format)
Set the format string used to aggregate items.
|
void |
setLocale(java.util.Locale locale)
Public setter for the locale.
|
void |
setMaximumLength(int maximumLength)
Public setter for the maximum length of the formatted string.
|
void |
setMinimumLength(int minimumLength)
Public setter for the minimum length of the formatted string.
|
aggregate, setFieldExtractorpublic void setMinimumLength(int minimumLength)
minimumLength - the minimum length to setpublic void setMaximumLength(int maximumLength)
maximumLength - the maximum length to setpublic void setFormat(java.lang.String format)
format - String containing the format to use.Formatterpublic void setLocale(java.util.Locale locale)
locale - the locale to setprotected java.lang.String doAggregate(java.lang.Object[] fields)
ExtractorLineAggregatordoAggregate in class ExtractorLineAggregator<T>fields - An array of the fields that must be aggregated