|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.item.file.transform.ExtractorLineAggregator<T>
org.springframework.batch.item.file.transform.FormatterLineAggregator<T>
public class FormatterLineAggregator<T>
A LineAggregator implementation which produces a String by
aggregating the provided item via the Formatter syntax.
Formatter| Constructor Summary | |
|---|---|
FormatterLineAggregator()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.springframework.batch.item.file.transform.ExtractorLineAggregator |
|---|
aggregate, setFieldExtractor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormatterLineAggregator()
| Method Detail |
|---|
public 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)
Formatterpublic void setLocale(java.util.Locale locale)
locale - the locale to setprotected java.lang.String doAggregate(java.lang.Object[] fields)
ExtractorLineAggregator
doAggregate in class ExtractorLineAggregator<T>fields - An array of the fields that must be aggregated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||