public class DefaultFieldSetFactory extends java.lang.Object implements FieldSetFactory
FieldSetFactory with no special knowledge
of the FieldSet required. Returns a DefaultFieldSet from both
factory methods.| Constructor and Description |
|---|
DefaultFieldSetFactory() |
| Modifier and Type | Method and Description |
|---|---|
FieldSet |
create(java.lang.String[] values)
Create a FieldSet with anonymous tokens.
|
FieldSet |
create(java.lang.String[] values,
java.lang.String[] names)
Create a FieldSet with named tokens.
|
void |
setDateFormat(java.text.DateFormat dateFormat)
The
DateFormat to use for parsing numbers. |
void |
setNumberFormat(java.text.NumberFormat numberFormat)
The
NumberFormat to use for parsing numbers. |
public void setNumberFormat(java.text.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(java.text.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 parsingpublic FieldSet create(java.lang.String[] values, java.lang.String[] names)
create in interface FieldSetFactoryvalues - the token valuesnames - the names of the tokensFieldSet.DefaultFieldSet.readString(String)public FieldSet create(java.lang.String[] values)
create in interface FieldSetFactoryvalues - the token valuesFieldSet.FieldSet.readString(int)