|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.item.file.transform.DefaultFieldSetFactory
public class DefaultFieldSetFactory
Default implementation of FieldSetFactory with no special knowledge
of the FieldSet required. Returns a DefaultFieldSet from both
factory methods.
| Constructor Summary | |
|---|---|
DefaultFieldSetFactory()
|
|
| Method Summary | |
|---|---|
FieldSet |
create(String[] values)
Create a FieldSet with anonymous tokens. |
FieldSet |
create(String[] values,
String[] names)
Create a FieldSet with named tokens. |
void |
setDateFormat(DateFormat dateFormat)
The DateFormat to use for parsing numbers. |
void |
setNumberFormat(NumberFormat numberFormat)
The NumberFormat to use for parsing numbers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFieldSetFactory()
| Method Detail |
|---|
public void setNumberFormat(NumberFormat numberFormat)
NumberFormat to use for parsing numbers. If unset the default
locale will be used.
numberFormat - the NumberFormat to use for number parsingpublic void setDateFormat(DateFormat dateFormat)
DateFormat to use for parsing numbers. If unset the default
pattern is ISO standard yyyy/MM/dd.
dateFormat - the DateFormat to use for date parsing
public FieldSet create(String[] values,
String[] names)
create in interface FieldSetFactoryvalues - the token valuesnames - the names of the tokensDefaultFieldSet.readString(String)public FieldSet create(String[] values)
create in interface FieldSetFactoryvalues - the token valuesFieldSet.readString(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||